dev
Last change
on this file since 6a65994 was 9e95498, checked in by Sara Fazliu <67891916+sarafazliu@…>, 3 years ago |
Added header component
|
-
Property mode
set to
100644
|
File size:
625 bytes
|
Rev | Line | |
---|
[e6a6d9a] | 1 | import { NgModule } from '@angular/core';
|
---|
[9e95498] | 2 | import { CommonModule } from '@angular/common';
|
---|
[e6a6d9a] | 3 | import { Routes, RouterModule } from '@angular/router';
|
---|
[dab7a9b] | 4 | import { AuthorizedGuard } from './core/guards/authorized.guard';
|
---|
[e6a6d9a] | 5 |
|
---|
| 6 | const routes: Routes = [
|
---|
[dab7a9b] | 7 | {
|
---|
| 8 | path: 'questioning',
|
---|
| 9 | canActivate: [AuthorizedGuard],
|
---|
| 10 | loadChildren: () => import('./modules/questioning/questioning.module').then((x) => x.QuestioningModule)
|
---|
| 11 | },
|
---|
[e6a6d9a] | 12 | {
|
---|
| 13 | path: '**',
|
---|
[31c006c] | 14 | redirectTo: 'questioning/preview'
|
---|
[e6a6d9a] | 15 | }
|
---|
| 16 | ];
|
---|
| 17 |
|
---|
| 18 | @NgModule({
|
---|
[9e95498] | 19 | imports: [
|
---|
| 20 | CommonModule,
|
---|
| 21 | RouterModule.forRoot(routes)
|
---|
| 22 | ],
|
---|
[e6a6d9a] | 23 | exports: [RouterModule]
|
---|
| 24 | })
|
---|
| 25 | export class AppRoutingModule {}
|
---|
Note:
See
TracBrowser
for help on using the repository browser.