add NotFound page, wire Routes.NotFoundPage, set log level to Debug
This commit is contained in:
@@ -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,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>
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
{
|
||||
"Logging": {
|
||||
"LogLevel": {
|
||||
"Default": "Information",
|
||||
"Microsoft.AspNetCore": "Warning"
|
||||
"Default": "Debug",
|
||||
"Microsoft.AspNetCore": "Debug"
|
||||
}
|
||||
},
|
||||
"AllowedHosts": "*",
|
||||
|
||||
Reference in New Issue
Block a user