diff options
Diffstat (limited to 'client/src/app/+admin/config/config.routes.ts')
-rw-r--r-- | client/src/app/+admin/config/config.routes.ts | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/client/src/app/+admin/config/config.routes.ts b/client/src/app/+admin/config/config.routes.ts new file mode 100644 index 000000000..a46b0ddfd --- /dev/null +++ b/client/src/app/+admin/config/config.routes.ts | |||
@@ -0,0 +1,32 @@ | |||
1 | import { Routes } from '@angular/router' | ||
2 | import { EditCustomConfigComponent } from '@app/+admin/config/edit-custom-config' | ||
3 | import { UserRightGuard } from '@app/core' | ||
4 | import { UserRight } from '../../../../../shared/models/users' | ||
5 | import { ConfigComponent } from './config.component' | ||
6 | |||
7 | export const ConfigRoutes: Routes = [ | ||
8 | { | ||
9 | path: 'config', | ||
10 | component: ConfigComponent, | ||
11 | canActivate: [ UserRightGuard ], | ||
12 | data: { | ||
13 | userRight: UserRight.MANAGE_CONFIGURATION | ||
14 | }, | ||
15 | children: [ | ||
16 | { | ||
17 | path: '', | ||
18 | redirectTo: 'edit-custom', | ||
19 | pathMatch: 'full' | ||
20 | }, | ||
21 | { | ||
22 | path: 'edit-custom', | ||
23 | component: EditCustomConfigComponent, | ||
24 | data: { | ||
25 | meta: { | ||
26 | title: 'Following list' | ||
27 | } | ||
28 | } | ||
29 | } | ||
30 | ] | ||
31 | } | ||
32 | ] | ||