aboutsummaryrefslogblamecommitdiffhomepage
path: root/client/src/app/admin/admin.routes.ts
blob: edb8ba49f8a9d1bdcb434accf773e044a8b2e412 (plain) (tree)
1
2
3
4
5
6
7
8
                                         

                                                   
                                          
                                            

                                      
                                    



                              




                            
                       
                        



                    
import { Routes } from '@angular/router';

import { AdminComponent } from './admin.component';
import { FriendsRoutes } from './friends';
import { RequestsRoutes } from './requests';
import { UsersRoutes } from './users';

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