mirror of https://github.com/abpframework/abp
parent
56636dab9a
commit
b8dd287c85
@ -0,0 +1 @@
|
||||
export * from './route.provider';
|
@ -0,0 +1,20 @@
|
||||
import { RoutesService } from '@abp/ng.core';
|
||||
import { APP_INITIALIZER } from '@angular/core';
|
||||
import { eThemeSharedRouteNames } from '../enums/route-names';
|
||||
|
||||
export const THEME_SHARED_ROUTE_PROVIDERS = [
|
||||
{ provide: APP_INITIALIZER, useFactory: configureRoutes, deps: [RoutesService], multi: true },
|
||||
];
|
||||
|
||||
export function configureRoutes(routes: RoutesService) {
|
||||
return () => {
|
||||
routes.add([
|
||||
{
|
||||
path: '',
|
||||
name: eThemeSharedRouteNames.Administration,
|
||||
iconClass: 'fa fa-wrench',
|
||||
order: 1,
|
||||
},
|
||||
]);
|
||||
};
|
||||
}
|
Loading…
Reference in new issue