Browse Source

refactoring

pull/11872/head^2
mpetrov 2 years ago
parent
commit
0821edc150
  1. 12
      ui-ngx/src/app/modules/home/pages/gateways/gateways-routing.module.ts

12
ui-ngx/src/app/modules/home/pages/gateways/gateways-routing.module.ts

@ -33,7 +33,7 @@ export const gatewaysDashboardResolver: ResolveFn<Dashboard> = (
export const gatewaysRoutes: Routes = [
{
path: 'entities/gateways',
path: 'gateways',
component: DashboardViewComponent,
data: {
auth: [Authority.TENANT_ADMIN],
@ -48,8 +48,16 @@ export const gatewaysRoutes: Routes = [
}
];
const routes: Routes = [
{
path: 'gateways',
pathMatch: 'full',
redirectTo: '/entities/gateways'
},
];
@NgModule({
imports: [RouterModule.forChild(gatewaysRoutes)],
imports: [RouterModule.forChild(routes)],
exports: [RouterModule]
})
export class GatewaysRoutingModule { }

Loading…
Cancel
Save