Oviya commited on
Commit
8cf6efe
·
1 Parent(s): 6ecce98
Files changed (1) hide show
  1. src/app/app-routing.module.ts +8 -4
src/app/app-routing.module.ts CHANGED
@@ -31,12 +31,16 @@ export const routes: Routes = [
31
  data: { title: 'Sign In' }
32
  },
33
 
34
- // Protected routes
 
 
 
 
 
35
  {
36
  path: 'chat/:id',
37
- component: ChatComponent,
38
- canActivate: [authGuard],
39
- data: { title: 'Chat', requiresAuth: true }
40
  },
41
 
42
  // Fallback route
 
31
  data: { title: 'Sign In' }
32
  },
33
 
34
+ // Chat routes
35
+ {
36
+ path: 'chat',
37
+ component: ChatComponent,
38
+ data: { title: 'Chat' }
39
+ },
40
  {
41
  path: 'chat/:id',
42
+ component: ChatComponent,
43
+ data: { title: 'Chat' }
 
44
  },
45
 
46
  // Fallback route