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

                                                   
                                          

                                      
                                    



                              




                            
                       



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

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

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