From af1aaba7ede7648273f94ba1f2e514c59c62f2e5 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Fri, 23 Mar 2018 23:43:34 -0400 Subject: [PATCH] UsePathBase --- src/Admin/Startup.cs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/Admin/Startup.cs b/src/Admin/Startup.cs index c6f72dc02..f0dbfbd37 100644 --- a/src/Admin/Startup.cs +++ b/src/Admin/Startup.cs @@ -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();