summary refs log tree commit diff
path: root/SystemdCtl/Components/Routes.razor
diff options
context:
space:
mode:
authorRory& <root@rory.gay>2024-01-20 08:34:32 +0100
committerRory& <root@rory.gay>2024-01-20 08:34:32 +0100
commit43e06f4b1b7ead9f8cc97fe547eb49d51f341486 (patch)
treeb700ba441320e0f3944c398080cadd296f03ef07 /SystemdCtl/Components/Routes.razor
downloadSystemdCtl-43e06f4b1b7ead9f8cc97fe547eb49d51f341486.tar.xz
Initial commit
Diffstat (limited to 'SystemdCtl/Components/Routes.razor')
-rw-r--r--SystemdCtl/Components/Routes.razor6
1 files changed, 6 insertions, 0 deletions
diff --git a/SystemdCtl/Components/Routes.razor b/SystemdCtl/Components/Routes.razor
new file mode 100644
index 0000000..5974410
--- /dev/null
+++ b/SystemdCtl/Components/Routes.razor
@@ -0,0 +1,6 @@
+<Router AppAssembly="@typeof(Program).Assembly" AdditionalAssemblies="new[] { typeof(Client._Imports).Assembly }">

+    <Found Context="routeData">

+        <RouteView RouteData="@routeData" DefaultLayout="@typeof(Layout.MainLayout)" />

+        <FocusOnNavigate RouteData="@routeData" Selector="h1" />

+    </Found>

+</Router>