Import des sources angular à partir de 'headup_app'
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
import { Routes } from '@angular/router';
|
||||
|
||||
import { AuthComponent, HomeComponent } from 'src/app/components';
|
||||
import { noauthGuard } from 'src/app/core/guards';
|
||||
|
||||
export const NOAUTH_ROUTES: Routes = [
|
||||
{
|
||||
path: 'home',
|
||||
component: HomeComponent
|
||||
},
|
||||
{
|
||||
path: 'login',
|
||||
component: AuthComponent,
|
||||
canActivate: [ noauthGuard ]
|
||||
},
|
||||
{
|
||||
path: 'register',
|
||||
component: AuthComponent,
|
||||
canActivate: [ noauthGuard ]
|
||||
},
|
||||
{
|
||||
path: '',
|
||||
redirectTo: 'home',
|
||||
pathMatch: 'full'
|
||||
}
|
||||
];
|
||||
Reference in New Issue
Block a user