mirror of
https://github.com/bitwarden/server.git
synced 2024-11-23 12:25:16 +01:00
UsePathBase
This commit is contained in:
parent
997839a2c7
commit
af1aaba7ed
@ -71,11 +71,7 @@ namespace Bit.Admin
|
|||||||
|
|
||||||
if(globalSettings.SelfHosted)
|
if(globalSettings.SelfHosted)
|
||||||
{
|
{
|
||||||
app.Use(async (context, next) =>
|
app.UsePathBase("/admin");
|
||||||
{
|
|
||||||
context.Request.PathBase = "/admin";
|
|
||||||
await next.Invoke();
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
app.UseAuthentication();
|
app.UseAuthentication();
|
||||||
|
Loading…
Reference in New Issue
Block a user