From a8402e7f17e978b839a605d4715ca51b4a76f1f3 Mon Sep 17 00:00:00 2001 From: metamuffin Date: Sun, 22 Jan 2023 14:56:46 +0100 Subject: admin panel --- server/src/routes/ui/home.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'server/src/routes/ui/home.rs') 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) -> DynLayoutPage { }, } } + +#[get("/", rank = 2)] +pub async fn r_home_unpriv() -> DynLayoutPage<'static> { + LayoutPage { + title: "Home".to_string(), + content: markup::new! { + h1 { @CONF.brand } + }, + } +} -- cgit v1.2.3-70-g09d2