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




                                                   
                                    










                                





                                          


                      





                                          



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

import { UsersComponent } from './users.component';
import { UserAddComponent } from './user-add';
import { UserListComponent } from './user-list';

export const UsersRoutes: Routes = [
  {
      path: 'users',
      component: UsersComponent,
      children: [
        {
          path: '',
          redirectTo: 'list',
          pathMatch: 'full'
        },
        {
          path: 'list',
          component: UserListComponent,
          data: {
            meta: {
              titleSuffix: ' - Users list'
            }
          }
        },
        {
          path: 'add',
          component: UserAddComponent,
          data: {
            meta: {
              titleSuffix: ' - Add a user'
            }
          }
        }
      ]
    }
];