Spaces:
Running
Running
Update flare-ui/src/app/app.routes.ts
Browse files- flare-ui/src/app/app.routes.ts +48 -44
flare-ui/src/app/app.routes.ts
CHANGED
@@ -1,45 +1,49 @@
|
|
1 |
-
import { Routes } from '@angular/router';
|
2 |
-
import { authGuard } from './guards/auth.guard';
|
3 |
-
|
4 |
-
export const routes: Routes = [
|
5 |
-
{
|
6 |
-
path: 'login',
|
7 |
-
loadComponent: () => import('./components/login/login.component').then(m => m.LoginComponent)
|
8 |
-
},
|
9 |
-
{
|
10 |
-
path: '',
|
11 |
-
loadComponent: () => import('./components/main/main.component').then(m => m.MainComponent),
|
12 |
-
canActivate: [authGuard],
|
13 |
-
children: [
|
14 |
-
{
|
15 |
-
path: 'user-info',
|
16 |
-
loadComponent: () => import('./components/user-info/user-info.component').then(m => m.UserInfoComponent)
|
17 |
-
},
|
18 |
-
{
|
19 |
-
path: 'environment',
|
20 |
-
loadComponent: () => import('./components/environment/environment.component').then(m => m.EnvironmentComponent)
|
21 |
-
},
|
22 |
-
{
|
23 |
-
path: 'apis',
|
24 |
-
loadComponent: () => import('./components/apis/apis.component').then(m => m.ApisComponent)
|
25 |
-
},
|
26 |
-
{
|
27 |
-
path: 'projects',
|
28 |
-
loadComponent: () => import('./components/projects/projects.component').then(m => m.ProjectsComponent)
|
29 |
-
},
|
30 |
-
{
|
31 |
-
path: 'test',
|
32 |
-
loadComponent: () => import('./components/test/test.component').then(m => m.TestComponent)
|
33 |
-
},
|
34 |
-
{
|
35 |
-
path: '',
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
}
|
|
|
|
|
|
|
|
|
45 |
];
|
|
|
1 |
+
import { Routes } from '@angular/router';
|
2 |
+
import { authGuard } from './guards/auth.guard';
|
3 |
+
|
4 |
+
export const routes: Routes = [
|
5 |
+
{
|
6 |
+
path: 'login',
|
7 |
+
loadComponent: () => import('./components/login/login.component').then(m => m.LoginComponent)
|
8 |
+
},
|
9 |
+
{
|
10 |
+
path: '',
|
11 |
+
loadComponent: () => import('./components/main/main.component').then(m => m.MainComponent),
|
12 |
+
canActivate: [authGuard],
|
13 |
+
children: [
|
14 |
+
{
|
15 |
+
path: 'user-info',
|
16 |
+
loadComponent: () => import('./components/user-info/user-info.component').then(m => m.UserInfoComponent)
|
17 |
+
},
|
18 |
+
{
|
19 |
+
path: 'environment',
|
20 |
+
loadComponent: () => import('./components/environment/environment.component').then(m => m.EnvironmentComponent)
|
21 |
+
},
|
22 |
+
{
|
23 |
+
path: 'apis',
|
24 |
+
loadComponent: () => import('./components/apis/apis.component').then(m => m.ApisComponent)
|
25 |
+
},
|
26 |
+
{
|
27 |
+
path: 'projects',
|
28 |
+
loadComponent: () => import('./components/projects/projects.component').then(m => m.ProjectsComponent)
|
29 |
+
},
|
30 |
+
{
|
31 |
+
path: 'test',
|
32 |
+
loadComponent: () => import('./components/test/test.component').then(m => m.TestComponent)
|
33 |
+
},
|
34 |
+
{
|
35 |
+
path: 'chat',
|
36 |
+
loadComponent: () => import('./components/chat/chat.component').then(c => c.ChatComponent)
|
37 |
+
},
|
38 |
+
{
|
39 |
+
path: '',
|
40 |
+
redirectTo: 'projects',
|
41 |
+
pathMatch: 'full'
|
42 |
+
}
|
43 |
+
]
|
44 |
+
},
|
45 |
+
{
|
46 |
+
path: '**',
|
47 |
+
redirectTo: ''
|
48 |
+
}
|
49 |
];
|