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


                                                      
 
                                      
   













                                       
           







                                      
           
         



       
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: {
            title: 'Friends list'
          }
        }
      },
      {
        path: 'add',
        component: FriendAddComponent,
        data: {
          meta: {
            title: 'Add friends'
          }
        }
      }
    ]
  }
]