mirror of https://github.com/abpframework/abp.git
2 changed files with 31 additions and 0 deletions
@ -0,0 +1 @@ |
|||
export * from './route.provider'; |
|||
@ -0,0 +1,30 @@ |
|||
import { eLayoutType, RoutesService } from '@abp/ng.core'; |
|||
import { eThemeSharedRouteNames } from '@abp/ng.theme.shared'; |
|||
import { APP_INITIALIZER } from '@angular/core'; |
|||
import { eTenantManagementRouteNames } from '../enums/route-names'; |
|||
|
|||
export const TENANT_MANAGEMENT_ROUTE_PROVIDERS = [ |
|||
{ provide: APP_INITIALIZER, useFactory: configureRoutes, deps: [RoutesService], multi: true }, |
|||
]; |
|||
|
|||
export function configureRoutes(routes: RoutesService) { |
|||
return () => { |
|||
routes.add([ |
|||
{ |
|||
path: '/tenant-management', |
|||
name: eTenantManagementRouteNames.TenantManagement, |
|||
parentName: eThemeSharedRouteNames.Administration, |
|||
layout: eLayoutType.application, |
|||
iconClass: 'fa fa-users', |
|||
order: 2, |
|||
}, |
|||
{ |
|||
path: '/tenant-management/tenants', |
|||
name: eTenantManagementRouteNames.Tenants, |
|||
parentName: eTenantManagementRouteNames.TenantManagement, |
|||
requiredPolicy: 'AbpTenantManagement.Tenants', |
|||
order: 1, |
|||
}, |
|||
]); |
|||
}; |
|||
} |
|||
Loading…
Reference in new issue