eosc-metadata-harvester/src/app/app.routing.ts

32 lines
866 B
TypeScript

import {NgModule} from '@angular/core';
import {RouterModule, Routes} from '@angular/router';
import {LoginGuard} from "./openaireLibrary/login/loginGuard.guard";
const routes: Routes = [
{
path: '',
loadChildren: () => import('./home/home.module').then(m => m.HomeModule)
},
{
path: 'reload',
loadChildren: () => import('./reload/libReload.module').then(m => m.LibReloadModule),
data: {hasSidebar: false, hasHeader: false}
},
// { path: 'error',
// pathMatch: 'full',
// component: AdminErrorPageComponent,
// data: {hasSidebar: false}
// },
// { path: '**',
// pathMatch: 'full',
// component: AdminErrorPageComponent
// }
];
@NgModule({
imports: [RouterModule.forRoot(routes)],
exports: [ RouterModule ]
})
export class AppRoutingModule {}