LANCommander/LANCommander.Server/UI/Routes.razor
2026-01-18 02:09:07 -06:00

17 lines
No EOL
522 B
Text

@using Microsoft.AspNetCore.Components.Authorization
@using LANCommander.UI
<Router AppAssembly="@typeof(Program).Assembly">
<Found Context="routeData">
<AuthorizeRouteView RouteData="@routeData" DefaultLayout="@typeof(MainLayout)">
<NotAuthorized>
<RedirectToLogin />
</NotAuthorized>
</AuthorizeRouteView>
</Found>
<NotFound>
<LayoutView Layout="@typeof(MainLayout)">
<NotFound />
</LayoutView>
</NotFound>
</Router>