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

dev
Last change on this file since 6a65994 was 9e95498, checked in by Sara Fazliu <67891916+sarafazliu@…>, 3 years ago

Added header component

  • Property mode set to 100644
File size: 625 bytes
RevLine 
[e6a6d9a]1import { NgModule } from '@angular/core';
[9e95498]2import { CommonModule } from '@angular/common';
[e6a6d9a]3import { Routes, RouterModule } from '@angular/router';
[dab7a9b]4import { AuthorizedGuard } from './core/guards/authorized.guard';
[e6a6d9a]5
6const routes: Routes = [
[dab7a9b]7 {
8 path: 'questioning',
9 canActivate: [AuthorizedGuard],
10 loadChildren: () => import('./modules/questioning/questioning.module').then((x) => x.QuestioningModule)
11 },
[e6a6d9a]12 {
13 path: '**',
[31c006c]14 redirectTo: 'questioning/preview'
[e6a6d9a]15 }
16];
17
18@NgModule({
[9e95498]19 imports: [
20 CommonModule,
21 RouterModule.forRoot(routes)
22 ],
[e6a6d9a]23 exports: [RouterModule]
24})
25export class AppRoutingModule {}
Note: See TracBrowser for help on using the repository browser.