aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/admin/admin-routing.module.ts
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2017-01-23 22:32:43 +0100
committerChocobozzz <florian.bigard@gmail.com>2017-01-23 22:32:43 +0100
commitb99290b1d5d736083513fb8f66e91f61bfe07e0b (patch)
treee0e7fa738ee661a267f5330db35bc46d295f945f /client/src/app/admin/admin-routing.module.ts
parent11ac88de40215783835cf6e6259ff0f6cee258dd (diff)
downloadPeerTube-b99290b1d5d736083513fb8f66e91f61bfe07e0b.tar.gz
PeerTube-b99290b1d5d736083513fb8f66e91f61bfe07e0b.tar.zst
PeerTube-b99290b1d5d736083513fb8f66e91f61bfe07e0b.zip
Client: lazy load admin area
Diffstat (limited to 'client/src/app/admin/admin-routing.module.ts')
-rw-r--r--client/src/app/admin/admin-routing.module.ts32
1 files changed, 0 insertions, 32 deletions
diff --git a/client/src/app/admin/admin-routing.module.ts b/client/src/app/admin/admin-routing.module.ts
deleted file mode 100644
index cabc6df15..000000000
--- a/client/src/app/admin/admin-routing.module.ts
+++ /dev/null
@@ -1,32 +0,0 @@
1import { NgModule } from '@angular/core';
2import { RouterModule, Routes } from '@angular/router';
3
4import { AdminComponent } from './admin.component';
5import { FriendsRoutes } from './friends';
6import { RequestsRoutes } from './requests';
7import { UsersRoutes } from './users';
8import { VideoAbusesRoutes } from './video-abuses';
9
10const adminRoutes: Routes = [
11 {
12 path: 'admin',
13 component: AdminComponent,
14 children: [
15 {
16 path: '',
17 redirectTo: 'users',
18 pathMatch: 'full'
19 },
20 ...FriendsRoutes,
21 ...RequestsRoutes,
22 ...UsersRoutes,
23 ...VideoAbusesRoutes
24 ]
25 }
26];
27
28@NgModule({
29 imports: [ RouterModule.forChild(adminRoutes) ],
30 exports: [ RouterModule ]
31})
32export class AdminRoutingModule {}