-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.razor
25 lines (24 loc) · 859 Bytes
/
App.razor
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<CascadingAuthenticationState>
<Blazorise.ThemeProvider Theme="@theme">
<Router AppAssembly="@typeof(Program).Assembly" PreferExactMatches="@true">
<Found Context="routeData">
<AuthorizeRouteView RouteData="@routeData" DefaultLayout="@typeof(MainLayout)">
<NotAuthorized>
<MythicNights.Pages.RedirectToLogin />
</NotAuthorized>
</AuthorizeRouteView>
</Found>
<NotFound>
<LayoutView Layout="@typeof(MainLayout)">
<p>Sorry, there's nothing at this address.</p>
</LayoutView>
</NotFound>
</Router>
</Blazorise.ThemeProvider>
</CascadingAuthenticationState>
@code{
private Theme theme = new Theme
{
// theme settings
};
}