|
|
|
@@ -20,7 +20,7 @@ const routes: Routes = [ |
|
|
|
{path: 'users', loadChildren: usersModule, canActivate: [AuthGuard]}, |
|
|
|
{path: 'account', loadChildren: accountModule}, |
|
|
|
{ |
|
|
|
path: 'customers', |
|
|
|
path: 'customer', |
|
|
|
component: TwoColumnComponent, |
|
|
|
canActivate: [AuthGuard], |
|
|
|
children: [ |
|
|
|
@@ -29,12 +29,12 @@ const routes: Routes = [ |
|
|
|
] |
|
|
|
}, |
|
|
|
{ |
|
|
|
path: 'suppliers', |
|
|
|
path: 'supplier', |
|
|
|
component: TwoColumnComponent, |
|
|
|
canActivate: [AuthGuard], |
|
|
|
children: [ |
|
|
|
{path: '', component: PartnersComponent, data: {dataType: 'supplier'}}, |
|
|
|
{path: 'detail', component: PartnersDetailComponent, data: {dataType: 'supplier-detail'}}, |
|
|
|
{path: ':id', component: PartnersDetailComponent, data: {dataType: 'supplier-detail'}}, |
|
|
|
] |
|
|
|
}, |
|
|
|
{ |
|
|
|
@@ -43,7 +43,7 @@ const routes: Routes = [ |
|
|
|
canActivate: [AuthGuard], |
|
|
|
children: [ |
|
|
|
{path: '', component: PartnersComponent, data: {dataType: 'service'}}, |
|
|
|
{path: 'detail', component: PartnersDetailComponent, data: {dataType: 'service-detail'}}, |
|
|
|
{path: ':id', component: PartnersDetailComponent, data: {dataType: 'service-detail'}}, |
|
|
|
] |
|
|
|
}, |
|
|
|
{ |
|
|
|
|