2018-07-23 16:42:17 +02:00
|
|
|
import { NgModule } from '@angular/core';
|
|
|
|
import { Routes, RouterModule } from '@angular/router';
|
|
|
|
import { MotionListComponent } from './motion-list/motion-list.component';
|
2018-08-09 16:03:24 +02:00
|
|
|
import { MotionDetailComponent } from './motion-detail/motion-detail.component';
|
2018-07-23 16:42:17 +02:00
|
|
|
|
2018-08-09 16:03:24 +02:00
|
|
|
const routes: Routes = [
|
|
|
|
{ path: '', component: MotionListComponent },
|
2018-08-21 14:56:26 +02:00
|
|
|
{ path: 'new', component: MotionDetailComponent },
|
2018-08-09 16:03:24 +02:00
|
|
|
{ path: ':id', component: MotionDetailComponent }
|
|
|
|
];
|
2018-07-23 16:42:17 +02:00
|
|
|
|
|
|
|
@NgModule({
|
|
|
|
imports: [RouterModule.forChild(routes)],
|
|
|
|
exports: [RouterModule]
|
|
|
|
})
|
|
|
|
export class MotionsRoutingModule {}
|