17 lines
599 B
Plaintext
17 lines
599 B
Plaintext
@using Microsoft.AspNetCore.Components.Authorization
|
|
@using MidrandBooks.Components.Pages
|
|
@namespace MidrandBooks
|
|
|
|
<CascadingAuthenticationState>
|
|
<Router AppAssembly="@typeof(Program).Assembly">
|
|
<Found Context="routeData">
|
|
<RouteView RouteData="routeData" DefaultLayout="typeof(MainLayout)" />
|
|
<FocusOnNavigate RouteData="routeData" Selector="h1" />
|
|
</Found>
|
|
<NotFound>
|
|
<LayoutView Layout="@typeof(MainLayout)">
|
|
<NotFound />
|
|
</LayoutView>
|
|
</NotFound>
|
|
</Router>
|
|
</CascadingAuthenticationState> |