Files
aliasvault/apps/server/AliasVault.Client/App.razor
2025-04-30 19:03:18 +02:00

17 lines
648 B
Plaintext

<CascadingAuthenticationState>
<Router AppAssembly="@typeof(App).Assembly">
<Found Context="routeData">
<AuthorizeRouteView RouteData="@routeData" DefaultLayout="@typeof(MainLayout)">
<NotAuthorized>
<RedirectToLogin />
</NotAuthorized>
</AuthorizeRouteView>
</Found>
<NotFound>
<LayoutView Layout="@typeof(Auth.Layout.MainLayout)">
<p class="text-gray-500 dark:text-gray-400">Sorry, there's nothing at this address.</p>
</LayoutView>
</NotFound>
</Router>
</CascadingAuthenticationState>