mirror of
https://github.com/bitwarden/server.git
synced 2025-07-02 00:22:50 -05:00
upgrade to aspnet core 3.1
This commit is contained in:
@ -10,6 +10,7 @@ using Microsoft.AspNetCore.Http;
|
||||
using Microsoft.Extensions.DependencyInjection.Extensions;
|
||||
using Microsoft.AspNetCore.Routing;
|
||||
using System.Globalization;
|
||||
using Microsoft.Extensions.Hosting;
|
||||
|
||||
namespace Bit.Billing
|
||||
{
|
||||
@ -71,8 +72,8 @@ namespace Bit.Billing
|
||||
|
||||
public void Configure(
|
||||
IApplicationBuilder app,
|
||||
IHostingEnvironment env,
|
||||
IApplicationLifetime appLifetime,
|
||||
IWebHostEnvironment env,
|
||||
IHostApplicationLifetime appLifetime,
|
||||
GlobalSettings globalSettings)
|
||||
{
|
||||
app.UseSerilog(env, appLifetime, globalSettings);
|
||||
@ -82,9 +83,11 @@ namespace Bit.Billing
|
||||
app.UseDeveloperExceptionPage();
|
||||
}
|
||||
|
||||
app.UseAuthentication();
|
||||
app.UseStaticFiles();
|
||||
app.UseMvcWithDefaultRoute();
|
||||
app.UseRouting();
|
||||
app.UseAuthentication();
|
||||
app.UseAuthorization();
|
||||
app.UseEndpoints(endpoints => endpoints.MapDefaultControllerRoute());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user