From b99290b1d5d736083513fb8f66e91f61bfe07e0b Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Mon, 23 Jan 2017 22:32:43 +0100 Subject: Client: lazy load admin area --- client/src/app/admin/admin-routing.module.ts | 32 ---------------------------- 1 file changed, 32 deletions(-) delete mode 100644 client/src/app/admin/admin-routing.module.ts (limited to 'client/src/app/admin/admin-routing.module.ts') 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 @@ -import { NgModule } from '@angular/core'; -import { RouterModule, Routes } from '@angular/router'; - -import { AdminComponent } from './admin.component'; -import { FriendsRoutes } from './friends'; -import { RequestsRoutes } from './requests'; -import { UsersRoutes } from './users'; -import { VideoAbusesRoutes } from './video-abuses'; - -const adminRoutes: Routes = [ - { - path: 'admin', - component: AdminComponent, - children: [ - { - path: '', - redirectTo: 'users', - pathMatch: 'full' - }, - ...FriendsRoutes, - ...RequestsRoutes, - ...UsersRoutes, - ...VideoAbusesRoutes - ] - } -]; - -@NgModule({ - imports: [ RouterModule.forChild(adminRoutes) ], - exports: [ RouterModule ] -}) -export class AdminRoutingModule {} -- cgit v1.2.3