aboutsummaryrefslogtreecommitdiff
path: root/server/src/routes/ui/home.rs
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2023-01-22 14:56:46 +0100
committermetamuffin <metamuffin@disroot.org>2023-01-22 14:56:46 +0100
commita8402e7f17e978b839a605d4715ca51b4a76f1f3 (patch)
treece411485725efc6d224a9dce917175af26934126 /server/src/routes/ui/home.rs
parented870d1fc04891e79ab1d40be473a07810a62e69 (diff)
downloadjellything-a8402e7f17e978b839a605d4715ca51b4a76f1f3.tar
jellything-a8402e7f17e978b839a605d4715ca51b4a76f1f3.tar.bz2
jellything-a8402e7f17e978b839a605d4715ca51b4a76f1f3.tar.zst
admin panel
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 }
+ },
+ }
+}