dev
Last change
on this file since 466d1ac was 5ad5988, checked in by Стојков Марко <mst@…>, 3 years ago |
Restructured oidc client
|
-
Property mode
set to
100644
|
File size:
705 bytes
|
Rev | Line | |
---|
[e6a6d9a] | 1 | import { NgModule } from '@angular/core';
|
---|
| 2 | import { Routes, RouterModule } from '@angular/router';
|
---|
[5ad5988] | 3 | import { AuthCallbackComponent } from './auth-callback/auth-callback.component';
|
---|
[dab7a9b] | 4 | import { AuthorizedGuard } from './core/guards/authorized.guard';
|
---|
[e6a6d9a] | 5 |
|
---|
| 6 | const routes: Routes = [
|
---|
[5ad5988] | 7 | {
|
---|
| 8 | path: 'auth-callback',
|
---|
| 9 | component: AuthCallbackComponent
|
---|
| 10 | },
|
---|
[dab7a9b] | 11 | {
|
---|
| 12 | path: 'questioning',
|
---|
| 13 | canActivate: [AuthorizedGuard],
|
---|
| 14 | loadChildren: () => import('./modules/questioning/questioning.module').then((x) => x.QuestioningModule)
|
---|
| 15 | },
|
---|
[e6a6d9a] | 16 | {
|
---|
| 17 | path: '**',
|
---|
[31c006c] | 18 | redirectTo: 'questioning/preview'
|
---|
[e6a6d9a] | 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.