20 lines
479 B
TypeScript
20 lines
479 B
TypeScript
|
import {Routes} from "@angular/router";
|
||
|
import {WarSubmitComponent} from "./war-submit.component";
|
||
|
import {WarDetailComponent} from "./war-detail.component";
|
||
|
import {LoginGuardMT} from "../login/login.guard";
|
||
|
|
||
|
|
||
|
export const warRoutes: Routes = [
|
||
|
{
|
||
|
path: '',
|
||
|
component: WarSubmitComponent,
|
||
|
canActivate: [LoginGuardMT]
|
||
|
},
|
||
|
{
|
||
|
path: ':id',
|
||
|
component: WarDetailComponent,
|
||
|
}];
|
||
|
|
||
|
export const warsRoutingComponents = [WarSubmitComponent, WarDetailComponent];
|
||
|
|