17 lines
726 B
TypeScript
17 lines
726 B
TypeScript
|
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';
|
||
|
|
||
|
const routes: Routes = [
|
||
|
{ path: '', component: DmpProfileListingComponent, canActivate: [AuthGuard] },
|
||
|
{ path: 'new', component: DmpProfileEditorComponent, canActivate: [AuthGuard] },
|
||
|
{ path: ':id', component: DmpProfileEditorComponent, canActivate: [AuthGuard] },
|
||
|
];
|
||
|
|
||
|
@NgModule({
|
||
|
imports: [RouterModule.forChild(routes)],
|
||
|
exports: [RouterModule]
|
||
|
})
|
||
|
export class DmpProfileRoutingModule { }
|