swedishchamber-granprize-admin/src/app/app-routing.module.ts

34 lines
1.0 KiB
TypeScript
Raw Normal View History

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";
const routes: Routes = [
{
path: 'awardees',
component: AwardeeListComponent
// canActivate: [AuthGuardService, RoleGuardService],
}, {
path: 'awardee/new',
component: AwardeeEditorComponent
// canActivate: [AuthGuardService, RoleGuardService],
}, {
path: 'judges',
component: JudgeListComponent
// 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 {}