2018-05-10 13:04:16 +02:00
|
|
|
import { NgModule } from '@angular/core';
|
2018-05-10 16:39:05 +02:00
|
|
|
import { RouterModule, Routes } from '@angular/router';
|
2018-05-10 13:04:16 +02:00
|
|
|
|
2018-05-10 16:39:05 +02:00
|
|
|
import { AwardeeListComponent } from "./awardee-list/awardee-list.component";
|
|
|
|
|
import { JudgeListComponent } from "./judge-list/judge-list.component";
|
|
|
|
|
import { AwardeeEditorComponent } from "./awardee-editor/awardee-editor.component";
|
|
|
|
|
import { JudgeEditorComponent } from "./judge-editor/judge-editor.component";
|
2018-05-11 10:46:27 +02:00
|
|
|
import { JudgeService } from "./shared/judge.service";
|
2018-05-10 16:39:05 +02:00
|
|
|
|
|
|
|
|
const routes: Routes = [
|
|
|
|
|
{
|
|
|
|
|
path: 'awardees',
|
|
|
|
|
component: AwardeeListComponent
|
|
|
|
|
// canActivate: [AuthGuardService, RoleGuardService],
|
|
|
|
|
}, {
|
|
|
|
|
path: 'awardee/new',
|
|
|
|
|
component: AwardeeEditorComponent
|
|
|
|
|
// canActivate: [AuthGuardService, RoleGuardService],
|
|
|
|
|
}, {
|
|
|
|
|
path: 'judges',
|
2018-05-11 10:46:27 +02:00
|
|
|
component: JudgeListComponent,
|
|
|
|
|
resolve: {
|
|
|
|
|
judges: JudgeService,
|
|
|
|
|
}
|
2018-05-10 16:39:05 +02:00
|
|
|
// canActivate: [AuthGuardService, RoleGuardService],
|
|
|
|
|
}, {
|
|
|
|
|
path: 'judge/new',
|
|
|
|
|
component: JudgeEditorComponent
|
|
|
|
|
// canActivate: [AuthGuardService, RoleGuardService],
|
|
|
|
|
}
|
|
|
|
|
];
|
2018-05-10 13:04:16 +02:00
|
|
|
|
|
|
|
|
@NgModule({
|
|
|
|
|
imports: [RouterModule.forRoot(routes)],
|
|
|
|
|
exports: [RouterModule]
|
|
|
|
|
})
|
2018-05-10 16:39:05 +02:00
|
|
|
export class AppRoutingModule {}
|