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