Entwicklung_BLAZOR/WerksverkaufScanner/WerksverkaufScanner/App.razor
2025-11-26 15:53:31 +01:00

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>