1
0
mirror of https://github.com/bitwarden/server.git synced 2024-11-22 12:15:36 +01:00

UsePathBase

This commit is contained in:
Kyle Spearrin 2018-03-23 23:43:34 -04:00
parent 997839a2c7
commit af1aaba7ed

View File

@ -71,11 +71,7 @@ namespace Bit.Admin
if(globalSettings.SelfHosted)
{
app.Use(async (context, next) =>
{
context.Request.PathBase = "/admin";
await next.Invoke();
});
app.UsePathBase("/admin");
}
app.UseAuthentication();