Newer
Older
import { NgModule } from '@angular/core';
import { RouterModule } from '@angular/router';
import { errorRoute } from './layouts/error/error.route';
import { navbarRoute } from './layouts/navbar/navbar.route';
import { pagesRoutes } from 'app/editorialPages/pages.route';
import { DEBUG_INFO_ENABLED } from 'app/app.constants';
import { Authority } from 'app/shared/constants/authority.constants';
import { DatapolicyComponent } from './layouts/datapolicy/datapolicy.component';
import { UserRouteAccessService } from 'app/core/auth/user-route-access-service';
const LAYOUT_ROUTES = [navbarRoute, ...errorRoute];
{
path: 'admin',
data: {
authorities: [Authority.ADMIN],
},
canActivate: [UserRouteAccessService],
loadChildren: () => import('./admin/admin-routing.module').then(m => m.AdminRoutingModule),
},
{
path: 'account',
loadChildren: () => import('./account/account.module').then(m => m.AccountModule),
},
loadChildren: () => import('app/search/search.module').then(m => m.SearchModule)
loadChildren: () => import('app/bookmarks/bookmarks.module').then(m => m.BookmarskModule)
},
{
path: 'datapolicy',
component: DatapolicyComponent
loadChildren: () => import('app/exercise/import/exercise-import.module').then(m => m.ExerciseImportModule)
imports: [RouterModule.forRoot(gitSearchRoutes, { enableTracing: DEBUG_INFO_ENABLED })],