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