diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2017-01-23 22:32:43 +0100 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2017-01-23 22:32:43 +0100 |
commit | b99290b1d5d736083513fb8f66e91f61bfe07e0b (patch) | |
tree | e0e7fa738ee661a267f5330db35bc46d295f945f /client/src/app/admin/admin-routing.module.ts | |
parent | 11ac88de40215783835cf6e6259ff0f6cee258dd (diff) | |
download | PeerTube-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.ts | 32 |
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 @@ | |||
1 | import { NgModule } from '@angular/core'; | ||
2 | import { RouterModule, Routes } from '@angular/router'; | ||
3 | |||
4 | import { AdminComponent } from './admin.component'; | ||
5 | import { FriendsRoutes } from './friends'; | ||
6 | import { RequestsRoutes } from './requests'; | ||
7 | import { UsersRoutes } from './users'; | ||
8 | import { VideoAbusesRoutes } from './video-abuses'; | ||
9 | |||
10 | const 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 | }) | ||
32 | export class AdminRoutingModule {} | ||