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

                                                       
                                                  

                                                    
                                      










                                  





                                            


                      





                                           



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

import { FriendsComponent } from './friends.component';
import { FriendAddComponent } from './friend-add';
import { FriendListComponent } from './friend-list';

export const FriendsRoutes: Routes = [
  {
      path: 'friends',
      component: FriendsComponent,
      children: [
        {
          path: '',
          redirectTo: 'list',
          pathMatch: 'full'
        },
        {
          path: 'list',
          component: FriendListComponent,
          data: {
            meta: {
              titleSuffix: ' - Friends list'
            }
          }
        },
        {
          path: 'add',
          component: FriendAddComponent,
          data: {
            meta: {
              titleSuffix: ' - Add friends'
            }
          }
        }
      ]
    }
];