
Co-authored-by: Phan Huy Tran <p.tran@neusta.de> Reviewed-on: #3 Co-authored-by: ptran <huydw@proton.me> Co-committed-by: ptran <huydw@proton.me>
11 lines
424 B
TypeScript
11 lines
424 B
TypeScript
import {Routes} from '@angular/router';
|
|
import {EmployeeListComponent} from "./employee-list/employee-list.component";
|
|
import {LoginComponent} from "./login/login.component";
|
|
import {AuthGuardService} from "./auth-guard.service";
|
|
|
|
export const routes: Routes = [
|
|
{path: 'login', component: LoginComponent},
|
|
{path: '', component: EmployeeListComponent, canActivate: [AuthGuardService]},
|
|
{path: '**', redirectTo: ''}
|
|
];
|