argos/dmp-frontend/src/app/ui/admin/dmp-profile/dmp-profile.routing.ts

17 lines
726 B
TypeScript
Raw Normal View History

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';
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 { }