2022-03-15 10:15:06 +00:00
|
|
|
import { NgModule } from '@angular/core';
|
|
|
|
import { RouterModule, Routes } from '@angular/router';
|
2022-04-05 17:23:52 +00:00
|
|
|
import { BotService } from './Services/bot.service';
|
|
|
|
import { BotSettingsComponent } from './Views/bot-settings/bot-settings.component';
|
2022-03-15 20:45:41 +00:00
|
|
|
import { DashboardComponent } from './Views/dashboard/dashboard.component';
|
|
|
|
import { LoginComponent } from './Views/login/login.component';
|
2022-03-19 18:55:42 +00:00
|
|
|
import { ProfileComponent } from './Views/profile/profile.component';
|
2022-03-15 20:45:41 +00:00
|
|
|
import { RegisterComponent } from './Views/register/register.component';
|
2022-03-15 10:15:06 +00:00
|
|
|
|
2022-03-15 20:45:41 +00:00
|
|
|
const routes: Routes = [
|
|
|
|
{
|
|
|
|
path: 'login',
|
|
|
|
component: LoginComponent,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: '',
|
|
|
|
component: DashboardComponent,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'register',
|
|
|
|
component: RegisterComponent,
|
|
|
|
},
|
2022-03-19 18:55:42 +00:00
|
|
|
{
|
|
|
|
path: 'profile',
|
|
|
|
component: ProfileComponent,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'settings',
|
2022-04-05 17:23:52 +00:00
|
|
|
component: BotSettingsComponent,
|
2022-03-19 18:55:42 +00:00
|
|
|
},
|
2022-03-15 20:45:41 +00:00
|
|
|
];
|
2022-03-15 10:15:06 +00:00
|
|
|
|
|
|
|
@NgModule({
|
|
|
|
imports: [RouterModule.forRoot(routes)],
|
2022-03-15 20:45:41 +00:00
|
|
|
exports: [RouterModule],
|
2022-03-15 10:15:06 +00:00
|
|
|
})
|
2022-03-15 20:45:41 +00:00
|
|
|
export class AppRoutingModule {}
|