-
-
Save explorer14/c90462b6452f48eb138b6907d676f71e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Router AppAssembly="@typeof(Program).Assembly"> | |
<Found Context="routeData"> | |
<AuthorizeRouteView RouteData="@routeData" DefaultLayout="@typeof(MainLayout)"> | |
<NotAuthorized> | |
@{ | |
NavMgr.NavigateTo("/login"); | |
} | |
</NotAuthorized> | |
</AuthorizeRouteView> | |
</Found> | |
<NotFound> | |
<CascadingAuthenticationState> | |
<LayoutView Layout="@typeof(NotFoundLayout)"> | |
<p>Oops! That page wasn't found! You may want to return <a href="/">Home</a></p> | |
</LayoutView> | |
</CascadingAuthenticationState> | |
</NotFound> | |
</Router> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment