2019-01-18 18:03:45 +01:00
|
|
|
import { NgModule } from '@angular/core';
|
|
|
|
import { RouterModule, Routes } from '@angular/router';
|
|
|
|
import { AuthGuard } from '../../../core/auth-guard.service';
|
|
|
|
import { DmpProfileEditorComponent } from './editor/dmp-profile-editor.component';
|
|
|
|
import { DmpProfileListingComponent } from './listing/dmp-profile-listing.component';
|
2020-02-03 16:53:25 +01:00
|
|
|
import { AdminAuthGuard } from '@app/core/admin-auth-guard.service';
|
2019-01-18 18:03:45 +01:00
|
|
|
|
|
|
|
const routes: Routes = [
|
2020-02-03 16:53:25 +01:00
|
|
|
{ path: '', component: DmpProfileListingComponent, canActivate: [AdminAuthGuard] },
|
|
|
|
{ path: 'new', component: DmpProfileEditorComponent, canActivate: [AdminAuthGuard], data: { title: 'GENERAL.TITLES.DMP-PROFILE-NEW' } },
|
|
|
|
{ path: ':id', component: DmpProfileEditorComponent, canActivate: [AdminAuthGuard], data: { title: 'GENERAL.TITLES.DMP-PROFILE-EDIT' } },
|
2019-01-18 18:03:45 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
@NgModule({
|
|
|
|
imports: [RouterModule.forChild(routes)],
|
|
|
|
exports: [RouterModule]
|
|
|
|
})
|
2019-09-16 17:46:19 +02:00
|
|
|
export class DmpProfileRoutingModule { }
|