Adding
This commit is contained in:
+19
@@ -0,0 +1,19 @@
|
||||
<CascadingAuthenticationState>
|
||||
<CascadingBlazoredModal HideCloseButton="true" DisableBackgroundCancel="true" Class="loading-modal">
|
||||
<Router AppAssembly="@typeof(Program).Assembly">
|
||||
<Found Context="routeData">
|
||||
<AuthorizeRouteView RouteData="@routeData" DefaultLayout="@typeof(MainLayout)">
|
||||
<NotAuthorized>
|
||||
<h1>Sorry!</h1>
|
||||
<p>You're not authorized to reach this page.</p>
|
||||
</NotAuthorized>
|
||||
</AuthorizeRouteView>
|
||||
</Found>
|
||||
<NotFound>
|
||||
<LayoutView Layout="@typeof(MainLayout)">
|
||||
<p>Sorry, there's nothing at this address.</p>
|
||||
</LayoutView>
|
||||
</NotFound>
|
||||
</Router>
|
||||
</CascadingBlazoredModal>
|
||||
</CascadingAuthenticationState>
|
||||
Reference in New Issue
Block a user