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