Fix routing
This commit is contained in:
parent
cb46c72a0f
commit
78f4defdc2
1 changed files with 9 additions and 7 deletions
|
@ -12,11 +12,13 @@ import { AuthGuard } from './auth.guard';
|
|||
|
||||
export const routes: Routes = [
|
||||
{ path: 'login', component: LoginComponent },
|
||||
{ path: '', component: HomeComponent, canActivate: [AuthGuard] },
|
||||
{ path: 'talkgroups', component: TalkgroupsComponent },
|
||||
{ path: 'talkgroups/import', component: ImportComponent },
|
||||
{ path: 'talkgroups/:sys/:tg', component: TalkgroupRecordComponent },
|
||||
{ path: 'calls', component: CallsComponent },
|
||||
{ path: 'incidents', component: IncidentsComponent },
|
||||
{ path: 'alerts', component: AlertsComponent },
|
||||
{ path: '', canActivateChild: [AuthGuard], children: [
|
||||
{ path: '', component: HomeComponent, pathMatch: 'full' },
|
||||
{ path: 'talkgroups', component: TalkgroupsComponent },
|
||||
{ path: 'talkgroups/import', component: ImportComponent },
|
||||
{ path: 'talkgroups/:sys/:tg', component: TalkgroupRecordComponent },
|
||||
{ path: 'calls', component: CallsComponent },
|
||||
{ path: 'incidents', component: IncidentsComponent },
|
||||
{ path: 'alerts', component: AlertsComponent },
|
||||
]},
|
||||
];
|
||||
|
|
Loading…
Reference in a new issue