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

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

Added header component

  • Property mode set to 100644
File size: 625 bytes
Line 
1import { NgModule } from '@angular/core';
2import { CommonModule } from '@angular/common';
3import { Routes, RouterModule } from '@angular/router';
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: '**',
14 redirectTo: 'questioning/preview'
15 }
16];
17
18@NgModule({
19 imports: [
20 CommonModule,
21 RouterModule.forRoot(routes)
22 ],
23 exports: [RouterModule]
24})
25export class AppRoutingModule {}
Note: See TracBrowser for help on using the repository browser.