2024-10-19 18:00:06 -05:00
|
|
|
@using Microsoft.AspNetCore.Components.Authorization
|
2026-01-18 02:09:07 -06:00
|
|
|
@using LANCommander.UI
|
2024-10-19 18:00:06 -05:00
|
|
|
|
|
|
|
|
<Router AppAssembly="@typeof(Program).Assembly">
|
|
|
|
|
<Found Context="routeData">
|
|
|
|
|
<AuthorizeRouteView RouteData="@routeData" DefaultLayout="@typeof(MainLayout)">
|
|
|
|
|
<NotAuthorized>
|
|
|
|
|
<RedirectToLogin />
|
|
|
|
|
</NotAuthorized>
|
|
|
|
|
</AuthorizeRouteView>
|
|
|
|
|
</Found>
|
|
|
|
|
<NotFound>
|
|
|
|
|
<LayoutView Layout="@typeof(MainLayout)">
|
2026-01-18 02:09:07 -06:00
|
|
|
<NotFound />
|
2024-10-19 18:00:06 -05:00
|
|
|
</LayoutView>
|
|
|
|
|
</NotFound>
|
|
|
|
|
</Router>
|