add NotFound page, wire Routes.NotFoundPage, set log level to Debug

This commit is contained in:
Daniel Harvey
2026-05-21 15:55:34 -04:00
parent e496d9cde6
commit f76c96fe34
3 changed files with 11 additions and 7 deletions
@@ -0,0 +1,8 @@
@page "/404"
<MudText Typo="Typo.h3">
Not Found
</MudText>
<MudText Typo="Typo.body1">
Sorry, the content you are looking for does not exist.
</MudText>
+1 -5
View File
@@ -1,10 +1,6 @@
<Router AppAssembly="typeof(Routes).Assembly">
<Router AppAssembly="typeof(Routes).Assembly" NotFoundPage="typeof(Pages.NotFound)">
<Found Context="routeData">
<RouteView RouteData="routeData" DefaultLayout="typeof(DeepDrftPublic.Client.Layout.MainLayout)" />
<FocusOnNavigate RouteData="routeData" Selector="h1" />
</Found>
<NotFound>
<PageTitle>Not found</PageTitle>
<p role="alert">Sorry, there's nothing at this address.</p>
</NotFound>
</Router>
+2 -2
View File
@@ -1,8 +1,8 @@
{
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft.AspNetCore": "Warning"
"Default": "Debug",
"Microsoft.AspNetCore": "Debug"
}
},
"AllowedHosts": "*",