From 1394787ff22563f6cbd1ac5e1438e4cd96738cec Mon Sep 17 00:00:00 2001 From: Robert Haken Date: Mon, 18 Nov 2024 15:48:35 +0100 Subject: [PATCH] TestApp - use Static Assets Middleware --- .../Havit.Blazor.TestApp/Components/App.razor | 12 ++++-------- Havit.Blazor.TestApp/Havit.Blazor.TestApp/Program.cs | 2 +- 2 files changed, 5 insertions(+), 9 deletions(-) diff --git a/Havit.Blazor.TestApp/Havit.Blazor.TestApp/Components/App.razor b/Havit.Blazor.TestApp/Havit.Blazor.TestApp/Components/App.razor index a45d339ac..c25f7bbe0 100644 --- a/Havit.Blazor.TestApp/Havit.Blazor.TestApp/Components/App.razor +++ b/Havit.Blazor.TestApp/Havit.Blazor.TestApp/Components/App.razor @@ -7,14 +7,10 @@ - - @((MarkupString)HxSetup.RenderBootstrapCssReference()) - - - - - - + + + + diff --git a/Havit.Blazor.TestApp/Havit.Blazor.TestApp/Program.cs b/Havit.Blazor.TestApp/Havit.Blazor.TestApp/Program.cs index 17cd58bad..0b33ec2a7 100644 --- a/Havit.Blazor.TestApp/Havit.Blazor.TestApp/Program.cs +++ b/Havit.Blazor.TestApp/Havit.Blazor.TestApp/Program.cs @@ -26,7 +26,7 @@ app.UseHttpsRedirection(); -app.UseStaticFiles(); +app.MapStaticAssets(); app.UseAntiforgery(); app.MapRazorComponents()