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

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
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: 'questioning',
9 canActivate: [AuthorizedGuard],
10 loadChildren: () => import('./modules/questioning/questioning.module').then((x) => x.QuestioningModule)
11 },
12 {
13 path: 'auth-callback',
14 pathMatch: 'full',
15 component: AuthCallbackComponent
16 },
17 {
18 path: '',
19 pathMatch: 'full',
20 redirectTo: 'questioning/preview'
21 },
22 {
23 path: '**',
24 redirectTo: 'questioning/preview'
25 }
26];
27
28@NgModule({
29 imports: [RouterModule.forRoot(routes)],
30 exports: [RouterModule]
31})
32export class AppRoutingModule {}
Note: See TracBrowser for help on using the repository browser.