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.
34 lines
947 B
34 lines
947 B
using Localization.Resources.AbpUi;
|
|
using Microsoft.Extensions.DependencyInjection;
|
|
using Volo.Abp.AspNetCore.Mvc;
|
|
using Volo.Abp.Localization;
|
|
using Volo.Abp.Modularity;
|
|
using Volo.CmsKit.Localization;
|
|
|
|
namespace Volo.CmsKit;
|
|
|
|
[DependsOn(
|
|
typeof(AbpAspNetCoreMvcModule),
|
|
typeof(CmsKitCommonApplicationContractsModule)
|
|
)]
|
|
public class CmsKitCommonHttpApiModule : AbpModule
|
|
{
|
|
|
|
public override void PreConfigureServices(ServiceConfigurationContext context)
|
|
{
|
|
PreConfigure<IMvcBuilder>(mvcBuilder =>
|
|
{
|
|
mvcBuilder.AddApplicationPartIfNotExists(typeof(CmsKitCommonHttpApiModule).Assembly);
|
|
});
|
|
}
|
|
|
|
public override void ConfigureServices(ServiceConfigurationContext context)
|
|
{
|
|
Configure<AbpLocalizationOptions>(options =>
|
|
{
|
|
options.Resources
|
|
.Get<CmsKitResource>()
|
|
.AddBaseTypes(typeof(AbpUiResource));
|
|
});
|
|
}
|
|
}
|
|
|