dev
Last change
on this file since 9885bee was dab7a9b, checked in by Стојков Марко <mst@…>, 3 years ago |
Preview question component
|
-
Property mode
set to
100644
|
File size:
543 bytes
|
Line | |
---|
1 | import { NgModule } from '@angular/core';
|
---|
2 | import { Routes, RouterModule } from '@angular/router';
|
---|
3 | import { AuthorizedGuard } from './core/guards/authorized.guard';
|
---|
4 |
|
---|
5 | const routes: Routes = [
|
---|
6 | {
|
---|
7 | path: 'questioning',
|
---|
8 | canActivate: [AuthorizedGuard],
|
---|
9 | loadChildren: () => import('./modules/questioning/questioning.module').then((x) => x.QuestioningModule)
|
---|
10 | },
|
---|
11 | {
|
---|
12 | path: '**',
|
---|
13 | redirectTo: 'public/home'
|
---|
14 | }
|
---|
15 | ];
|
---|
16 |
|
---|
17 | @NgModule({
|
---|
18 | imports: [RouterModule.forRoot(routes)],
|
---|
19 | exports: [RouterModule]
|
---|
20 | })
|
---|
21 | export class AppRoutingModule {}
|
---|
Note:
See
TracBrowser
for help on using the repository browser.