argos/dmp-frontend/src/app/app-routing.module.ts

140 lines
2.6 KiB
TypeScript

import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { B2AccessLoginComponent } from './ui/auth/login/b2access/b2access-login.component';
const appRoutes: Routes = [
{
path: '',
redirectTo: '/home',
data: {
breadcrumbs: false
},
pathMatch: 'full'
},
{
path: 'datasetcreatewizard',
loadChildren: './ui/dataset-create-wizard/dataset-create-wizard.module#DatasetCreateWizardModule',
data: {
breadcrumb: true
}
},
{
path: 'explore',
loadChildren: './ui/explore-dataset/explore-dataset.module#ExploreDatasetModule',
data: {
breadcrumb: true
}
},
{
path: 'explore-plans',
loadChildren: './ui/explore-dmp/explore-dmp.module#ExploreDmpModule',
data: {
breadcrumb: true
}
},
{
path: 'datasets',
loadChildren: './ui/dataset/dataset.module#DatasetModule',
data: {
breadcrumb: true
}
},
{
path: 'about',
loadChildren: './ui/about/about.module#AboutModule',
data: {
breadcrumb: true
}
},
{
path: 'grants',
loadChildren: './ui/grant/grant.module#GrantModule',
data: {
breadcrumb: true
}
},
{
path: 'plans',
loadChildren: './ui/dmp/dmp.module#DmpModule',
data: {
breadcrumb: true
}
},
{
path: 'dmp-profiles',
loadChildren: './ui/admin/dmp-profile/dmp-profile.module#DmpProfileModule',
data: {
breadcrumb: true
}
},
{
path: 'quick-wizard',
loadChildren: './ui/quick-wizard/quick-wizard.module#OuickWizardModule',
data: {
breadcrumb: true
}
},
{
path: 'dataset-profiles',
loadChildren: './ui/admin/dataset-profile/dataset-profile.module#DatasetProfileModule',
data: {
breadcrumb: true
}
},
{
path: 'home',
loadChildren: './ui/dashboard/dashboard.module#DashboardModule',
data: {
breadcrumb: true
}
},
{
path: 'unauthorized',
loadChildren: './ui/misc/unauthorized/unauthorized.module#UnauthorizedModule',
data: {
breadcrumb: true
},
},
{
path: 'users',
loadChildren: './ui/admin/user/user.module#UserModule',
data: {
breadcrumb: true
},
},
{
path: 'profile',
loadChildren: './ui/user-profile/user-profile.module#UserProfileModule',
data: {
breadcrumb: true
},
},
{
path: 'login/admin',
loadChildren: './ui/auth/admin-login/admin-login.module#AdminLoginModule',
data: {
breadcrumb: true
},
},
{
path: 'login',
loadChildren: './ui/auth/login/login.module#LoginModule',
data: {
breadcrumb: true
},
},
{
path: 'api/oauth/authorized/b2access',
component: B2AccessLoginComponent,
data: {
},
}
];
@NgModule({
imports: [RouterModule.forRoot(appRoutes)],
exports: [RouterModule],
})
export class AppRoutingModule { }