LANCommander/LANCommander.Server/UI/Routes.razor

17 lines
522 B
Text
Raw Permalink Normal View History

@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>