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.
35 lines
1.1 KiB
35 lines
1.1 KiB
3 years ago
|
using Localization.Resources.AbpUi;
|
||
|
using Microsoft.Extensions.DependencyInjection;
|
||
|
using Sanhe.Abp.MenuManagement.Localization;
|
||
|
using Volo.Abp.AspNetCore.Mvc;
|
||
|
using Volo.Abp.Localization;
|
||
|
using Volo.Abp.Modularity;
|
||
|
using Volo.Abp.PermissionManagement.HttpApi;
|
||
|
|
||
|
namespace Sanhe.Abp.MenuManagement;
|
||
|
|
||
|
[DependsOn(
|
||
|
typeof(AbpPermissionManagementHttpApiModule),
|
||
|
typeof(MenuManagementApplicationContractsModule),
|
||
|
typeof(AbpAspNetCoreMvcModule))]
|
||
|
public class MenuManagementHttpApiModule : AbpModule
|
||
|
{
|
||
|
public override void PreConfigureServices(ServiceConfigurationContext context)
|
||
|
{
|
||
|
PreConfigure<IMvcBuilder>(mvcBuilder =>
|
||
|
{
|
||
|
mvcBuilder.AddApplicationPartIfNotExists(typeof(MenuManagementHttpApiModule).Assembly);
|
||
|
});
|
||
|
}
|
||
|
|
||
|
public override void ConfigureServices(ServiceConfigurationContext context)
|
||
|
{
|
||
|
Configure<AbpLocalizationOptions>(options =>
|
||
|
{
|
||
|
options.Resources
|
||
|
.Get<MenuManagementResource>()
|
||
|
.AddBaseTypes(typeof(AbpUiResource));
|
||
|
});
|
||
|
}
|
||
|
}
|