-
Notifications
You must be signed in to change notification settings - Fork 195
Expand file tree
/
Copy pathrouter.module.ts
More file actions
49 lines (46 loc) · 1.7 KB
/
Copy pathrouter.module.ts
File metadata and controls
49 lines (46 loc) · 1.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { PageMainComponent } from './pages/main/main.component';
import { PagesBlankComponent } from './pages/blank/blank.component';
import { PagesShareComponent } from './pages/share/share.component';
import { PagesConnectComponent } from './pages/connect/connect.component';
import { PageDirectComponent } from './pages/direct/direct.component';
import { PagesReplayComponent } from './pages/replay/replay.component';
const appRoutes: Routes = [
{ path: '', component: PageMainComponent },
{
path: 'sftp',
loadComponent: () => import('./pages/sftp/sftp.component').then(m => m.PageSftpComponent)
},
{
path: 'connect',
loadComponent: () =>
import('./pages/connect/connect.component').then(m => m.PagesConnectComponent)
},
{ path: 'undefined', component: PagesBlankComponent },
{ path: 'share/:id', component: PagesShareComponent },
{
path: 'replay/:sid',
loadComponent: () => import('./pages/replay/replay.component').then(m => m.PagesReplayComponent)
},
{
path: 'admin-connect',
loadComponent: () => import('./pages/direct/direct.component').then(m => m.PageDirectComponent)
},
{
path: 'monitor/:sid',
loadComponent: () =>
import('./pages/monitor/monitor.component').then(m => m.PagesMonitorComponent)
},
{
path: 'k8s/:token',
loadComponent: () =>
import('./pages/kubernetes/kubernetes.component').then(m => m.PagesKubernetesComponent)
}
// { path: '**', component: PagesNotFoundComponent }
];
@NgModule({
imports: [RouterModule.forRoot(appRoutes, { enableTracing: false })],
exports: [RouterModule]
})
export class AppRouterModule {}