PeerTube/client/src/app/+admin/admin-routing.module.ts

33 lines
757 B
TypeScript
Raw Normal View History

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