03d935d633
New version of TS-Lint New version of ngx-file-drop with breaking changes npm audits Removed Terser, should work out of the box again
18 lines
740 B
TypeScript
18 lines
740 B
TypeScript
import { NgModule } from '@angular/core';
|
|
import { Routes, RouterModule } from '@angular/router';
|
|
|
|
import { AssignmentDetailComponent } from './components/assignment-detail/assignment-detail.component';
|
|
import { AssignmentListComponent } from './components/assignment-list/assignment-list.component';
|
|
|
|
const routes: Routes = [
|
|
{ path: '', component: AssignmentListComponent, pathMatch: 'full' },
|
|
{ path: 'new', component: AssignmentDetailComponent, data: { basePerm: 'assignments.can_manage' } },
|
|
{ path: ':id', component: AssignmentDetailComponent, data: { basePerm: 'assignments.can_see' } }
|
|
];
|
|
|
|
@NgModule({
|
|
imports: [RouterModule.forChild(routes)],
|
|
exports: [RouterModule]
|
|
})
|
|
export class AssignmentsRoutingModule {}
|