dev
Last change
on this file since fcc3080 was c205cc4, checked in by Стојков Марко <mst@…>, 3 years ago |
Ask question finishing touches
|
-
Property mode
set to
100644
|
File size:
812 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 = [
|
---|
[c205cc4] | 7 | {
|
---|
| 8 | path: 'questioning',
|
---|
| 9 | canActivate: [AuthorizedGuard],
|
---|
| 10 | loadChildren: () => import('./modules/questioning/questioning.module').then((x) => x.QuestioningModule)
|
---|
| 11 | },
|
---|
[5ad5988] | 12 | {
|
---|
| 13 | path: 'auth-callback',
|
---|
[c205cc4] | 14 | pathMatch: 'full',
|
---|
[5ad5988] | 15 | component: AuthCallbackComponent
|
---|
| 16 | },
|
---|
[dab7a9b] | 17 | {
|
---|
[c205cc4] | 18 | path: '',
|
---|
| 19 | pathMatch: 'full',
|
---|
| 20 | redirectTo: 'questioning/preview'
|
---|
[dab7a9b] | 21 | },
|
---|
[e6a6d9a] | 22 | {
|
---|
| 23 | path: '**',
|
---|
[31c006c] | 24 | redirectTo: 'questioning/preview'
|
---|
[e6a6d9a] | 25 | }
|
---|
| 26 | ];
|
---|
| 27 |
|
---|
| 28 | @NgModule({
|
---|
| 29 | imports: [RouterModule.forRoot(routes)],
|
---|
| 30 | exports: [RouterModule]
|
---|
| 31 | })
|
---|
| 32 | export class AppRoutingModule {}
|
---|
Note:
See
TracBrowser
for help on using the repository browser.