]>
Commit | Line | Data |
---|---|---|
df98563e C |
1 | import { NgModule } from '@angular/core' |
2 | import { RouterModule, Routes } from '@angular/router' | |
fd206f0b | 3 | import { ConfigRoutes } from '@app/+admin/config' |
67ed6552 C |
4 | import { ModerationRoutes } from '@app/+admin/moderation/moderation.routes' |
5 | import { PluginsRoutes } from '@app/+admin/plugins/plugins.routes' | |
6 | import { SystemRoutes } from '@app/+admin/system' | |
df98563e | 7 | import { AdminComponent } from './admin.component' |
51548b31 | 8 | import { FollowsRoutes } from './follows' |
00004f7f | 9 | import { OverviewRoutes } from './overview' |
7da18e44 | 10 | |
693b1aba | 11 | const adminRoutes: Routes = [ |
7da18e44 | 12 | { |
b99290b1 | 13 | path: '', |
7da18e44 C |
14 | component: AdminComponent, |
15 | children: [ | |
e105c19c C |
16 | { |
17 | path: '', | |
18 | redirectTo: 'users', | |
19 | pathMatch: 'full' | |
20 | }, | |
00004f7f | 21 | |
51548b31 | 22 | ...FollowsRoutes, |
00004f7f | 23 | ...OverviewRoutes, |
614d1ae9 | 24 | ...ModerationRoutes, |
2c22613c | 25 | ...SystemRoutes, |
d00dc28d C |
26 | ...ConfigRoutes, |
27 | ...PluginsRoutes | |
7da18e44 C |
28 | ] |
29 | } | |
df98563e | 30 | ] |
693b1aba C |
31 | |
32 | @NgModule({ | |
33 | imports: [ RouterModule.forChild(adminRoutes) ], | |
34 | exports: [ RouterModule ] | |
35 | }) | |
36 | export class AdminRoutingModule {} |