From 4718659f9a0eb1c3c8449bafcc4f1b5b4383a62e Mon Sep 17 00:00:00 2001 From: sboulema Date: Thu, 14 Nov 2024 13:18:01 +0100 Subject: [PATCH] Move MapStaticAssets --- src/Program.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Program.cs b/src/Program.cs index 9921a5b..d10b0f7 100644 --- a/src/Program.cs +++ b/src/Program.cs @@ -82,8 +82,12 @@ app.UseHttpsRedirection(); +// app.UseStaticFiles(); + app.UseRouting(); +app.MapStaticAssets(); + app.UseOutputCache(); app.UseAuthentication(); @@ -96,8 +100,6 @@ Directory.CreateDirectory($"{builder.Environment.ContentRootPath}/Data"); } -app.MapStaticAssets(); - app.MapTus("/import", TusConfigurationFactory); app.MapControllers();