mirror of https://github.com/EasyAbp/EShop.git
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.
33 lines
1.0 KiB
33 lines
1.0 KiB
using Localization.Resources.AbpUi;
|
|
using EasyAbp.EShop.Baskets.Localization;
|
|
using Volo.Abp.AspNetCore.Mvc;
|
|
using Volo.Abp.Localization;
|
|
using Volo.Abp.Modularity;
|
|
using Microsoft.Extensions.DependencyInjection;
|
|
|
|
namespace EasyAbp.EShop.Baskets
|
|
{
|
|
[DependsOn(
|
|
typeof(EShopBasketsApplicationContractsModule),
|
|
typeof(AbpAspNetCoreMvcModule))]
|
|
public class EShopBasketsHttpApiModule : AbpModule
|
|
{
|
|
public override void PreConfigureServices(ServiceConfigurationContext context)
|
|
{
|
|
PreConfigure<IMvcBuilder>(mvcBuilder =>
|
|
{
|
|
mvcBuilder.AddApplicationPartIfNotExists(typeof(EShopBasketsHttpApiModule).Assembly);
|
|
});
|
|
}
|
|
|
|
public override void ConfigureServices(ServiceConfigurationContext context)
|
|
{
|
|
Configure<AbpLocalizationOptions>(options =>
|
|
{
|
|
options.Resources
|
|
.Get<BasketsResource>()
|
|
.AddBaseTypes(typeof(AbpUiResource));
|
|
});
|
|
}
|
|
}
|
|
}
|
|
|