source: src/Clients/Angular/finki-chattery/src/app/app-routing.module.ts@ d2b1fa6

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 
1import { NgModule } from '@angular/core';
2import { Routes, RouterModule } from '@angular/router';
3import { AuthCallbackComponent } from './auth-callback/auth-callback.component';
4import { AuthorizedGuard } from './core/guards/authorized.guard';
5
6const 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})
26export class AppRoutingModule {}
Note: See TracBrowser for help on using the repository browser.