diff --git a/Groceries/Components/Layout.razor b/Groceries/Components/Layout.razor index 6cd13c3..c9feba0 100644 --- a/Groceries/Components/Layout.razor +++ b/Groceries/Components/Layout.razor @@ -9,10 +9,12 @@ - + - - + + + + diff --git a/Groceries/Program.cs b/Groceries/Program.cs index f690b8e..5b0acb0 100644 --- a/Groceries/Program.cs +++ b/Groceries/Program.cs @@ -51,11 +51,12 @@ builder.Services.AddDbContextPool(options => options var app = builder.Build(); -app.UseStaticFiles(); app.UseRouting(); app.UseSession(); -app.MapControllers(); +app.MapStaticAssets(); +app.MapControllers() + .WithStaticAssets(); await app.RunAsync();