ciyidogan commited on
Commit
76c3424
·
verified ·
1 Parent(s): 321ebc6

Update flare-ui/src/app/app.routes.ts

Browse files
Files changed (1) hide show
  1. flare-ui/src/app/app.routes.ts +8 -1
flare-ui/src/app/app.routes.ts CHANGED
@@ -1,5 +1,6 @@
1
  import { Routes } from '@angular/router';
2
  import { authGuard } from './guards/auth.guard';
 
3
 
4
  export const routes: Routes = [
5
  {
@@ -39,11 +40,17 @@ export const routes: Routes = [
39
  path: 'spark',
40
  loadComponent: () => import('./components/spark/spark.component').then(m => m.SparkComponent)
41
  },
 
 
 
 
 
 
42
  {
43
  path: '',
44
  redirectTo: 'projects',
45
  pathMatch: 'full'
46
- }
47
  ]
48
  },
49
  {
 
1
  import { Routes } from '@angular/router';
2
  import { authGuard } from './guards/auth.guard';
3
+ import { RealtimeChatComponent } from './components/realtime-chat.component';
4
 
5
  export const routes: Routes = [
6
  {
 
40
  path: 'spark',
41
  loadComponent: () => import('./components/spark/spark.component').then(m => m.SparkComponent)
42
  },
43
+ {
44
+ path: 'realtime-chat/:sessionId',
45
+ component: RealtimeChatComponent,
46
+ canActivate: [AuthGuard],
47
+ data: { title: 'Real-time Chat' }
48
+ },
49
  {
50
  path: '',
51
  redirectTo: 'projects',
52
  pathMatch: 'full'
53
+ }
54
  ]
55
  },
56
  {