mirror of https://github.com/abpframework/abp
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.
26 lines
842 B
26 lines
842 B
using Microsoft.Extensions.DependencyInjection;
|
|
using Volo.Abp.AspNetCore.Mvc;
|
|
using Volo.Abp.Modularity;
|
|
|
|
namespace Volo.Abp.MultiTenancy
|
|
{
|
|
[DependsOn(typeof(AbpMultiTenancyApplicationModule), typeof(AbpAspNetCoreMvcModule))]
|
|
public class AbpMultiTenancyHttpApiModule : AbpModule
|
|
{
|
|
public override void ConfigureServices(IServiceCollection services)
|
|
{
|
|
services.AddAssemblyOf<AbpMultiTenancyHttpApiModule>();
|
|
|
|
services.Configure<AbpAspNetCoreMvcOptions>(options =>
|
|
{
|
|
options.ConventionalControllers.Create(
|
|
typeof(AbpMultiTenancyApplicationModule).Assembly,
|
|
opts =>
|
|
{
|
|
opts.RootPath = "multi-tenancy";
|
|
}
|
|
);
|
|
});
|
|
}
|
|
}
|
|
} |