aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/slskd/Startup.cs14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/slskd/Startup.cs b/src/slskd/Startup.cs
index 83f6dd1b..b6ef0788 100644
--- a/src/slskd/Startup.cs
+++ b/src/slskd/Startup.cs
@@ -196,17 +196,11 @@
}
app.UseCors("AllowAll");
- app.UseAuthentication();
-
- app.UseSerilogRequestLogging();
-
- app.UseRouting();
- app.UseHttpMetrics();
app.UsePathBase(BasePath);
// remove any errant double forward slashes which may have been introduced
// by a reverse proxy or having the base path removed
- app.Use(async (context, next) =>
+ app.Use(async (context, next) =>
{
var path = context.Request.Path.ToString();
@@ -228,6 +222,12 @@
app.UseFileServer(fileServerOptions);
+ app.UseSerilogRequestLogging();
+ app.UseHttpMetrics();
+
+ app.UseAuthentication();
+
+ app.UseRouting();
app.UseAuthorization();
app.UseEndpoints(endpoints =>
{