authentication
This commit is contained in:
@@ -1,3 +1,16 @@
|
||||
import { Routes } from '@angular/router';
|
||||
import { AppComponent } from './app.component';
|
||||
import { AuthenticatedGuard } from './core/auth/auth.guard';
|
||||
import { StartComponent } from './modules/start/start.component';
|
||||
import { LoginComponent } from './modules/auth/login/login.component';
|
||||
import { LayoutComponent } from './core/layout/layout.component';
|
||||
import { DashboardComponent } from './modules/dashboard/dashboard.component';
|
||||
import { AllUsersComponent } from './modules/admin/all-users/all-users.component';
|
||||
|
||||
export const routes: Routes = [];
|
||||
export const routes: Routes = [
|
||||
{ path: '', component: LayoutComponent, canActivate: [AuthenticatedGuard], children: [
|
||||
{ path: '', component: DashboardComponent },
|
||||
{ path: 'users', component: AllUsersComponent }
|
||||
]},
|
||||
{ path: 'login', component: LoginComponent},
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user