Browse Source

* Fixes auth issue #18

pull/29/head
Per-Arne Andersen 5 years ago
parent
commit
0809ea3534
  1. 2
      wg_dashboard_frontend/src/app/page/page-routing.module.ts

2
wg_dashboard_frontend/src/app/page/page-routing.module.ts

@ -16,7 +16,7 @@ const routes: Routes = [
}, },
{ path: 'user', component: LayoutComponent, children: { path: 'user', component: LayoutComponent, children:
[ [
{ path: 'edit', component: EditComponent, pathMatch: 'full' }, { path: 'edit', component: EditComponent, pathMatch: 'full', canActivate: [AuthGuard]},
{ path: 'login', component: LoginComponent, pathMatch: 'full' }, { path: 'login', component: LoginComponent, pathMatch: 'full' },
], ],
}, },

Loading…
Cancel
Save