diff options
| author | Jake Mannens <jake@asger.xyz> | 2026-03-17 03:04:36 +1100 |
|---|---|---|
| committer | Jake Mannens <jake@asger.xyz> | 2026-03-25 01:57:41 +1100 |
| commit | c751709b1b4fe6f16fd84647e8e071455e7b78d6 (patch) | |
| tree | 47734a083d888660606e6cf6cf158c93e69a9807 /App.razor | |
v0.1av0.1a
Diffstat (limited to 'App.razor')
| -rw-r--r-- | App.razor | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/App.razor b/App.razor new file mode 100644 index 0000000..b4e47c9 --- /dev/null +++ b/App.razor @@ -0,0 +1,19 @@ +<CascadingAuthenticationState> + <Router AppAssembly="@typeof(App).Assembly"> + <Found Context="routeData"> + <AuthorizeRouteView + RouteData="@routeData" + DefaultLayout="@typeof(MainLayout)"> + <NotAuthorized> + <RedirectLogin/> + </NotAuthorized> + </AuthorizeRouteView> + </Found> + <NotFound> + <PageTitle>Not found</PageTitle> + <LayoutView Layout="@typeof(MainLayout)"> + <p role="alert">Sorry, there's nothing at this address.</p> + </LayoutView> + </NotFound> + </Router> +</CascadingAuthenticationState> |
