
Co-authored-by: Phan Huy Tran <p.tran@neusta.de> Reviewed-on: #10 Reviewed-by: Constantin Simonis <constantin@simonis.lol>
11 lines
399 B
TypeScript
11 lines
399 B
TypeScript
import {Routes} from '@angular/router';
|
|
import {LoginComponent} from "./login/login.component";
|
|
import {AuthGuardService} from "./services/auth-guard.service";
|
|
import {HomeComponent} from "./home/home.component";
|
|
|
|
export const routes: Routes = [
|
|
{path: 'login', component: LoginComponent},
|
|
{path: '', component: HomeComponent, canActivate: [AuthGuardService]},
|
|
{path: '**', redirectTo: ''}
|
|
];
|