dev
Last change
on this file was f3c4950, checked in by Стојков Марко <mst@…>, 3 years ago |
Moderator can create categories
|
-
Property mode
set to
100644
|
File size:
1.1 KB
|
Rev | Line | |
---|
[e6a6d9a] | 1 | import { NgModule } from '@angular/core';
|
---|
| 2 | import { Routes, RouterModule } from '@angular/router';
|
---|
[5ad5988] | 3 | import { AuthCallbackComponent } from './auth-callback/auth-callback.component';
|
---|
[f3c4950] | 4 | import { AuthorizedModeratorGuard } from './core/guards/authorized-moderator.guard';
|
---|
[dab7a9b] | 5 | import { AuthorizedGuard } from './core/guards/authorized.guard';
|
---|
[e6a6d9a] | 6 |
|
---|
| 7 | const routes: Routes = [
|
---|
[c205cc4] | 8 | {
|
---|
| 9 | path: 'questioning',
|
---|
| 10 | canActivate: [AuthorizedGuard],
|
---|
| 11 | loadChildren: () => import('./modules/questioning/questioning.module').then((x) => x.QuestioningModule)
|
---|
| 12 | },
|
---|
[f3c4950] | 13 | {
|
---|
| 14 | path: 'moderating',
|
---|
| 15 | canActivate: [AuthorizedGuard, AuthorizedModeratorGuard],
|
---|
| 16 | loadChildren: () => import('./modules/moderating/moderating.module').then((x) => x.ModeratingModule)
|
---|
| 17 | },
|
---|
[5ad5988] | 18 | {
|
---|
| 19 | path: 'auth-callback',
|
---|
[c205cc4] | 20 | pathMatch: 'full',
|
---|
[5ad5988] | 21 | component: AuthCallbackComponent
|
---|
| 22 | },
|
---|
[dab7a9b] | 23 | {
|
---|
[c205cc4] | 24 | path: '',
|
---|
| 25 | pathMatch: 'full',
|
---|
| 26 | redirectTo: 'questioning/preview'
|
---|
[dab7a9b] | 27 | },
|
---|
[e6a6d9a] | 28 | {
|
---|
| 29 | path: '**',
|
---|
[31c006c] | 30 | redirectTo: 'questioning/preview'
|
---|
[e6a6d9a] | 31 | }
|
---|
| 32 | ];
|
---|
| 33 |
|
---|
| 34 | @NgModule({
|
---|
| 35 | imports: [RouterModule.forRoot(routes)],
|
---|
| 36 | exports: [RouterModule]
|
---|
| 37 | })
|
---|
| 38 | export class AppRoutingModule {}
|
---|
Note:
See
TracBrowser
for help on using the repository browser.