TelegramAktienBot/frontend/src/app/app-routing.module.ts

38 lines
979 B
TypeScript
Raw Normal View History

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';
import { DashboardComponent } from './Views/dashboard/dashboard.component';
import { LoginComponent } from './Views/login/login.component';
import { ProfileComponent } from './Views/profile/profile.component';
import { RegisterComponent } from './Views/register/register.component';
2022-03-15 10:15:06 +00:00
const routes: Routes = [
{
path: 'login',
component: LoginComponent,
},
{
path: '',
component: DashboardComponent,
},
{
path: 'register',
component: RegisterComponent,
},
{
path: 'profile',
component: ProfileComponent,
},
{
path: 'settings',
2022-04-05 17:23:52 +00:00
component: BotSettingsComponent,
},
];
2022-03-15 10:15:06 +00:00
@NgModule({
imports: [RouterModule.forRoot(routes)],
exports: [RouterModule],
2022-03-15 10:15:06 +00:00
})
export class AppRoutingModule {}