2024-05-31 13:16:09 +00:00
|
|
|
@using Microsoft.AspNetCore.Components.Authorization
|
|
|
|
<Router AppAssembly="@typeof(MauiProgram).Assembly">
|
|
|
|
<Found Context="routeData">
|
|
|
|
<AuthorizeRouteView RouteData="@routeData" DefaultLayout="@typeof(Layout.MainLayout)">
|
|
|
|
<Authorizing>Logging in...</Authorizing>
|
|
|
|
<NotAuthorized><RedirectToLogin /></NotAuthorized>
|
|
|
|
</AuthorizeRouteView>
|
|
|
|
<FocusOnNavigate RouteData="@routeData" Selector="h1" />
|
|
|
|
</Found>
|
|
|
|
<NotFound>
|
|
|
|
<CascadingAuthenticationState>
|
|
|
|
<LayoutView Layout="@typeof(Layout.MainLayout)">
|
|
|
|
<img data-emoji="🦒" />
|
|
|
|
<p>Sorry, there's nothing here.</p>
|
|
|
|
</LayoutView>
|
|
|
|
</CascadingAuthenticationState>
|
|
|
|
</NotFound>
|
2024-05-30 01:06:08 +00:00
|
|
|
</Router>
|