25 lines
852 B
TypeScript
25 lines
852 B
TypeScript
import { Route } from '@angular/router';
|
|
import { ContentLayout } from './shell/layouts/content-layout/content-layout';
|
|
import { AuthenticationLayout } from './shell/layouts/authentication-layout/authentication-layout';
|
|
import { authGuard } from './core/guards/auth/auth.guard';
|
|
|
|
export const App_Route: Route[] = [
|
|
{ path: '', redirectTo: 'auth/login', pathMatch: 'full' },
|
|
{
|
|
path: 'auth',
|
|
component: AuthenticationLayout,
|
|
loadChildren: () =>
|
|
import('./features/authentication/authentication.routes').then((m) => m.authen),
|
|
},
|
|
{
|
|
path: '',
|
|
component: ContentLayout,
|
|
canActivateChild: [authGuard],
|
|
loadChildren: () => import('./shell/routes/content.routes').then((m) => m.content),
|
|
},
|
|
{
|
|
path: '**',
|
|
loadComponent: () => import('./features/errors/error404/error404').then((m) => m.Error404),
|
|
},
|
|
];
|