1 | import { NgModule } from '@angular/core';
|
2 | import { Routes, RouterModule } from '@angular/router';
|
3 |
|
4 | import { HelloArmorComponent } from './hello-armor/hello-armor.component';
|
5 | import { IdentityGuard } from '@armor/api';
|
6 |
|
7 | const routes: Routes = [
|
8 | {
|
9 | path: 'hello',
|
10 | component: HelloArmorComponent,
|
11 | canActivate: [IdentityGuard]
|
12 | }
|
13 | ];
|
14 |
|
15 | ({
|
16 | imports: [RouterModule.forChild(routes)],
|
17 | exports: [RouterModule]
|
18 | })
|
19 | export class MainRoutingModule { }
|