aboutsummaryrefslogtreecommitdiff
path: root/server/src/routes/ui/home.rs
diff options
context:
space:
mode:
Diffstat (limited to 'server/src/routes/ui/home.rs')
-rw-r--r--server/src/routes/ui/home.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/server/src/routes/ui/home.rs b/server/src/routes/ui/home.rs
index 6e4684c..b9e9289 100644
--- a/server/src/routes/ui/home.rs
+++ b/server/src/routes/ui/home.rs
@@ -15,3 +15,13 @@ pub async fn r_home(_sess: Session, library: &State<Library>) -> DynLayoutPage {
},
}
}
+
+#[get("/", rank = 2)]
+pub async fn r_home_unpriv() -> DynLayoutPage<'static> {
+ LayoutPage {
+ title: "Home".to_string(),
+ content: markup::new! {
+ h1 { @CONF.brand }
+ },
+ }
+}