|
1 |
| -import { Routes } from '@angular/router'; |
2 |
| -import { NotFoundComponent } from "./view/not-found/not-found.component"; |
3 |
| -import { LoginLandingComponent } from "./view/login-landing/login-landing.component"; |
4 |
| -import { HomeComponent } from "./view/home/home.component"; |
5 |
| -import { authGuard } from "./middleware/auth.guard"; |
6 |
| -import { VmManagerComponent } from './view/vm-manager/vm-manager.component'; |
7 |
| -import { LoginComponent } from './view/login/login.component'; |
8 |
| -import { TwitchBotIndexComponent } from './view/twitch/twitch-bot-index/twitch-bot-index.component'; |
9 |
| -import { TwitchBotConfigComponent } from './view/twitch/twitch-bot-config/twitch-bot-config.component'; |
10 |
| -import { ImdbSearchComponent } from './view/imdb-search/imdb-search.component'; |
| 1 | +import {Routes} from '@angular/router'; |
| 2 | +import {NotFoundComponent} from "./view/not-found/not-found.component"; |
| 3 | +import {LoginLandingComponent} from "./view/login-landing/login-landing.component"; |
| 4 | +import {HomeComponent} from "./view/home/home.component"; |
| 5 | +import {authGuard} from "./middleware/auth.guard"; |
| 6 | +import {VmManagerComponent} from './view/vm-manager/vm-manager.component'; |
| 7 | +import {LoginComponent} from './view/login/login.component'; |
| 8 | +import {TwitchBotIndexComponent} from './view/twitch/twitch-bot-index/twitch-bot-index.component'; |
| 9 | +import {TwitchBotConfigComponent} from './view/twitch/twitch-bot-config/twitch-bot-config.component'; |
| 10 | +import {ImdbSearchComponent} from './view/imdb-search/imdb-search.component'; |
11 | 11 |
|
12 | 12 | export const routes: Routes = [
|
13 | 13 | {path: '', component: HomeComponent},
|
14 | 14 | {path: 'user/auth', component: LoginComponent},
|
15 | 15 | {path: 'user/login', component: LoginLandingComponent},
|
16 | 16 | {path: 'home', component: HomeComponent},
|
17 | 17 | {path: 'vm-admin', component: VmManagerComponent, canActivate: [authGuard]},
|
18 |
| - {path: 'twitch-bot/index', component: TwitchBotIndexComponent}, |
| 18 | + {path: 'twitch-bot', component: TwitchBotIndexComponent}, |
19 | 19 | {path: 'twitch-bot/config', component: TwitchBotConfigComponent},
|
20 | 20 | {path: 'imdb-search', component: ImdbSearchComponent},
|
21 | 21 | {path: '**', component: NotFoundComponent},
|
|
0 commit comments