2018-07-23 16:42:17 +02:00
|
|
|
import { NgModule } from '@angular/core';
|
|
|
|
import { Routes, RouterModule } from '@angular/router';
|
2019-03-04 18:28:21 +01:00
|
|
|
|
|
|
|
import { AssignmentDetailComponent } from './components/assignment-detail/assignment-detail.component';
|
2018-07-23 16:42:17 +02:00
|
|
|
import { AssignmentListComponent } from './assignment-list/assignment-list.component';
|
|
|
|
|
2019-03-04 18:28:21 +01:00
|
|
|
const routes: Routes = [
|
|
|
|
{ path: '', component: AssignmentListComponent, pathMatch: 'full' },
|
|
|
|
{ path: 'new', component: AssignmentDetailComponent },
|
|
|
|
{ path: ':id', component: AssignmentDetailComponent }
|
|
|
|
];
|
2018-07-23 16:42:17 +02:00
|
|
|
|
|
|
|
@NgModule({
|
|
|
|
imports: [RouterModule.forChild(routes)],
|
|
|
|
exports: [RouterModule]
|
|
|
|
})
|
|
|
|
export class AssignmentsRoutingModule {}
|