17 lines
538 B
Plaintext
17 lines
538 B
Plaintext
@using Microsoft.AspNetCore.Components.Authorization
|
|
|
|
<CascadingAuthenticationState>
|
|
<Router AppAssembly="@typeof(App).Assembly">
|
|
<Found Context="routeData">
|
|
<AuthorizeRouteView RouteData="@routeData" DefaultLayout="@typeof(MainLayout)">
|
|
<NotAuthorized>
|
|
<RedirectToLogin />
|
|
</NotAuthorized>
|
|
</AuthorizeRouteView>
|
|
</Found>
|
|
<NotFound>
|
|
<RedirectToLogin />
|
|
</NotFound>
|
|
</Router>
|
|
</CascadingAuthenticationState>
|