Revize 76eb842a
Přidáno uživatelem Jakub Danek před více než 5 roky(ů)
webapp/src/app/app-routing.module.ts | ||
---|---|---|
5 | 5 |
import {PageNotFoundComponent} from './page-not-found/page-not-found.component'; |
6 | 6 |
import {EmployeeComponentGuard} from './auth/employee-component.guard'; |
7 | 7 |
import {DashboardComponentGuard} from './auth/dashboard-component.guard'; |
8 |
import {LoginComponent} from "./login/login.component"; |
|
8 | 9 |
|
9 | 10 |
const routes: Routes = [ |
10 | 11 |
{ path: 'employees', component: EmployeesListComponent, canActivate: [EmployeeComponentGuard], runGuardsAndResolvers: 'always'}, |
11 | 12 |
{ path: 'dashboard', component: DashboardComponent, canActivate: [DashboardComponentGuard], runGuardsAndResolvers: 'always'}, |
13 |
{path: 'login', component: LoginComponent}, |
|
12 | 14 |
{ path: '', redirectTo: '/dashboard', pathMatch: 'full' }, |
13 | 15 |
{ path: '**', component: PageNotFoundComponent } |
14 | 16 |
]; |
Také k dispozici: Unified diff
re #29 crude login page