]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/app/+admin/admin-routing.module.ts
Fix filters error in console
[github/Chocobozzz/PeerTube.git] / client / src / app / +admin / admin-routing.module.ts
CommitLineData
df98563e
C
1import { NgModule } from '@angular/core'
2import { RouterModule, Routes } from '@angular/router'
fd206f0b 3import { ConfigRoutes } from '@app/+admin/config'
67ed6552
C
4import { ModerationRoutes } from '@app/+admin/moderation/moderation.routes'
5import { PluginsRoutes } from '@app/+admin/plugins/plugins.routes'
6import { SystemRoutes } from '@app/+admin/system'
df98563e 7import { AdminComponent } from './admin.component'
51548b31 8import { FollowsRoutes } from './follows'
00004f7f 9import { OverviewRoutes } from './overview'
7da18e44 10
693b1aba 11const 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})
36export class AdminRoutingModule {}