Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @using Microsoft.AspNetCore.Components.Authorization
- <CascadingAuthenticationState>
- <Router AppAssembly="@typeof(App).Assembly">
- <Found Context="routeData">
- <AuthorizeRouteView RouteData="@routeData" DefaultLayout="@typeof(MainLayout)">
- <NotAuthorized>
- <RedirectToLogin />
- <MudText Typo="Typo.h3">Not Authorized!</MudText>
- </NotAuthorized>
- </AuthorizeRouteView>
- </Found>
- <NotFound>
- <PageTitle>Not found</PageTitle>
- <LayoutView Layout="@typeof(MainLayout)">
- <p role="alert">Sorry, there's nothing at this address.</p>
- </LayoutView>
- </NotFound>
- </Router>
- </CascadingAuthenticationState>
Advertisement
Add Comment
Please, Sign In to add comment