Remotely/Server/App.razor

22 lines
822 B
Plaintext

<CascadingAuthenticationState>
<Router AppAssembly="@typeof(Program).Assembly" PreferExactMatches="@true">
<Found Context="routeData">
<AuthorizeRouteView RouteData="@routeData" DefaultLayout="@typeof(MainLayout)">
<NotAuthorized>
<div class="jumbotron">
<h3>You are not authorized to access this resource.</h3>
</div>
</NotAuthorized>
</AuthorizeRouteView>
</Found>
<NotFound>
<LayoutView Layout="@typeof(MainLayout)">
<p>Hmm. It looks like there's nothing at this location.</p>
</LayoutView>
</NotFound>
<Navigating>
<LoadingSignal />
</Navigating>
</Router>
</CascadingAuthenticationState>