|
|
|
@ -16,6 +16,8 @@ using Volo.Abp.Account.Web;
|
|
|
|
|
using Volo.Abp.AspNetCore.Authentication.JwtBearer;
|
|
|
|
|
using Volo.Abp.AspNetCore.MultiTenancy;
|
|
|
|
|
using Volo.Abp.AspNetCore.Mvc;
|
|
|
|
|
using Volo.Abp.AspNetCore.Mvc.UI.Bundling;
|
|
|
|
|
using Volo.Abp.AspNetCore.Mvc.UI.Theme.Basic.Bundling;
|
|
|
|
|
using Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared;
|
|
|
|
|
using Volo.Abp.AspNetCore.Serilog;
|
|
|
|
|
using Volo.Abp.Autofac;
|
|
|
|
@ -46,6 +48,7 @@ namespace MyCompanyName.MyProjectName
|
|
|
|
|
var configuration = context.Services.GetConfiguration();
|
|
|
|
|
var hostingEnvironment = context.Services.GetHostingEnvironment();
|
|
|
|
|
|
|
|
|
|
ConfigureBundles();
|
|
|
|
|
ConfigureUrls(configuration);
|
|
|
|
|
ConfigureConventionalControllers();
|
|
|
|
|
ConfigureAuthentication(context, configuration);
|
|
|
|
@ -55,6 +58,20 @@ namespace MyCompanyName.MyProjectName
|
|
|
|
|
ConfigureSwaggerServices(context);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private void ConfigureBundles()
|
|
|
|
|
{
|
|
|
|
|
Configure<AbpBundlingOptions>(options =>
|
|
|
|
|
{
|
|
|
|
|
options.StyleBundles.Configure(
|
|
|
|
|
BasicThemeBundles.Styles.Global,
|
|
|
|
|
bundle =>
|
|
|
|
|
{
|
|
|
|
|
bundle.AddFiles("/global-styles.css");
|
|
|
|
|
}
|
|
|
|
|
);
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private void ConfigureUrls(IConfiguration configuration)
|
|
|
|
|
{
|
|
|
|
|
Configure<AppUrlOptions>(options =>
|
|
|
|
@ -200,4 +217,4 @@ namespace MyCompanyName.MyProjectName
|
|
|
|
|
app.UseConfiguredEndpoints();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|