From cbcf06e456fa44d436c52c49ba14603004fd51a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Pivo=C5=88ka?= Date: Tue, 21 May 2024 02:30:55 +0200 Subject: [PATCH] Fix static files --- .../TMTurboRecords.Client/Components/Pages/Index.razor | 2 +- TMTurboRecords/TMTurboRecords/Program.cs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/TMTurboRecords/TMTurboRecords.Client/Components/Pages/Index.razor b/TMTurboRecords/TMTurboRecords.Client/Components/Pages/Index.razor index bf71281..84c2887 100644 --- a/TMTurboRecords/TMTurboRecords.Client/Components/Pages/Index.razor +++ b/TMTurboRecords/TMTurboRecords.Client/Components/Pages/Index.razor @@ -1,4 +1,4 @@ -@page "/{map?}/{zone?}" +@page "/{map:nonfile?}/{zone?}" @rendermode InteractiveWebAssembly @inject HttpClient Http diff --git a/TMTurboRecords/TMTurboRecords/Program.cs b/TMTurboRecords/TMTurboRecords/Program.cs index 7453f13..65dab35 100644 --- a/TMTurboRecords/TMTurboRecords/Program.cs +++ b/TMTurboRecords/TMTurboRecords/Program.cs @@ -96,14 +96,14 @@ app.UseStaticFiles(); -app.UseAntiforgery(); - app.UseSwagger(); app.MapScalarUi(); app.UseEndpoints(); +app.UseAntiforgery(); + app.MapRazorComponents() .AddInteractiveWebAssemblyRenderMode() .AddAdditionalAssemblies(typeof(TMTurboRecords.Client._Imports).Assembly);