mirror of https://github.com/abpframework/abp.git
csharpabpc-sharpframeworkblazoraspnet-coredotnet-coreaspnetcorearchitecturesaasdomain-driven-designangularmulti-tenancy
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
529 B
25 lines
529 B
import { RoutesService, eLayoutType } from '@abp/ng.core';
|
|
import { APP_INITIALIZER } from '@angular/core';
|
|
|
|
export const APP_ROUTE_PROVIDER = [
|
|
{
|
|
provide: APP_INITIALIZER,
|
|
useFactory: configureRoutes,
|
|
deps: [RoutesService],
|
|
multi: true,
|
|
},
|
|
];
|
|
|
|
function configureRoutes(routesService: RoutesService) {
|
|
return () => {
|
|
routesService.add([
|
|
{
|
|
path: '/',
|
|
name: 'Home',
|
|
iconClass: 'fas fa-home',
|
|
order: 1,
|
|
layout: eLayoutType.application,
|
|
},
|
|
]);
|
|
};
|
|
}
|
|
|