2017-06-16 08:32:15 -04:00
|
|
|
import { NgModule } from '@angular/core'
|
|
|
|
import { RouterModule, Routes } from '@angular/router'
|
2016-08-09 15:45:21 -04:00
|
|
|
|
2017-06-16 08:32:15 -04:00
|
|
|
import { AdminComponent } from './admin.component'
|
|
|
|
import { FriendsRoutes } from './friends'
|
|
|
|
import { RequestsRoutes } from './requests'
|
|
|
|
import { UsersRoutes } from './users'
|
|
|
|
import { VideoAbusesRoutes } from './video-abuses'
|
2016-08-09 15:45:21 -04:00
|
|
|
|
2016-11-20 11:18:15 -05:00
|
|
|
const adminRoutes: Routes = [
|
2016-08-09 15:45:21 -04:00
|
|
|
{
|
2017-01-23 16:32:43 -05:00
|
|
|
path: '',
|
2016-08-09 15:45:21 -04:00
|
|
|
component: AdminComponent,
|
|
|
|
children: [
|
2016-08-21 04:41:21 -04:00
|
|
|
{
|
|
|
|
path: '',
|
|
|
|
redirectTo: 'users',
|
|
|
|
pathMatch: 'full'
|
|
|
|
},
|
2016-08-12 12:22:58 -04:00
|
|
|
...FriendsRoutes,
|
2016-09-23 11:09:38 -04:00
|
|
|
...RequestsRoutes,
|
2017-01-23 16:16:48 -05:00
|
|
|
...UsersRoutes,
|
|
|
|
...VideoAbusesRoutes
|
2016-08-09 15:45:21 -04:00
|
|
|
]
|
|
|
|
}
|
2017-06-16 08:32:15 -04:00
|
|
|
]
|
2016-11-20 11:18:15 -05:00
|
|
|
|
|
|
|
@NgModule({
|
|
|
|
imports: [ RouterModule.forChild(adminRoutes) ],
|
|
|
|
exports: [ RouterModule ]
|
|
|
|
})
|
|
|
|
export class AdminRoutingModule {}
|