aboutsummaryrefslogblamecommitdiffhomepage
path: root/client/src/app/admin/admin-routing.module.ts
blob: 6bff250330e4adeac4c7e3df0748c9526037b46d (plain) (tree)
1
2
3
4
5
6
7
8
9

                                                       

                                                   
                                          
                                            

                                      
                             



                              




                            
                       
                        



                    





                                                  
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';

const adminRoutes: Routes = [
  {
    path: 'admin',
    component: AdminComponent,
    children: [
      {
        path: '',
        redirectTo: 'users',
        pathMatch: 'full'
      },
      ...FriendsRoutes,
      ...RequestsRoutes,
      ...UsersRoutes
    ]
  }
];

@NgModule({
  imports: [ RouterModule.forChild(adminRoutes) ],
  exports: [ RouterModule ]
})
export class AdminRoutingModule {}