2018-01-30 10:35:26 +01:00
|
|
|
import { ProjectEditorComponent } from './editor/project-editor.component';
|
|
|
|
import { ProjectListingComponent } from './listing/project-listing.component';
|
|
|
|
import { RouterModule, Routes } from '@angular/router';
|
|
|
|
|
2018-05-28 11:50:42 +02:00
|
|
|
export const ProjectRoutes: Routes = [
|
2018-10-05 17:00:54 +02:00
|
|
|
{
|
|
|
|
path: '',
|
|
|
|
component: ProjectListingComponent,
|
|
|
|
data: {
|
|
|
|
breadcrumb: true
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'edit/:id',
|
|
|
|
component: ProjectEditorComponent,
|
|
|
|
data: {
|
|
|
|
breadcrumb: true
|
|
|
|
},
|
|
|
|
/* resolve: {
|
|
|
|
project: ProjectResolver
|
|
|
|
} */
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'new',
|
|
|
|
component: ProjectEditorComponent,
|
|
|
|
data: {
|
|
|
|
breadcrumb: true
|
|
|
|
},
|
|
|
|
},
|
2018-01-30 10:35:26 +01:00
|
|
|
];
|
|
|
|
|