about summary refs log tree commit diff
path: root/templates/src
diff options
context:
space:
mode:
authorVika <vika@fireburn.ru>2024-07-08 23:56:57 +0300
committerVika <vika@fireburn.ru>2024-07-08 23:57:28 +0300
commitb629dc4f7d03c493a4c173d63ef5205b6a24b838 (patch)
tree2cd2af1c68802903825793c443a908685bd6b06e /templates/src
parent4b7832e7a75ef202c60dc6c00f7518975e64f03a (diff)
downloadkittybox-b629dc4f7d03c493a4c173d63ef5205b6a24b838.tar.zst
WIP: admin (not wired up yet, and DEFINITELY NOT SECURE, DO NOT WIRE UP)
Diffstat (limited to 'templates/src')
-rw-r--r--templates/src/admin.rs5
-rw-r--r--templates/src/lib.rs2
2 files changed, 7 insertions, 0 deletions
diff --git a/templates/src/admin.rs b/templates/src/admin.rs
new file mode 100644
index 0000000..2837b34
--- /dev/null
+++ b/templates/src/admin.rs
@@ -0,0 +1,5 @@
+markup::define! {
+    AdminHome {
+        p { "This is an example admin homepage." }
+    }
+}
diff --git a/templates/src/lib.rs b/templates/src/lib.rs
index 8d5d5fa..dd263e9 100644
--- a/templates/src/lib.rs
+++ b/templates/src/lib.rs
@@ -9,6 +9,8 @@ pub use login::LoginPage;
 mod mf2;
 pub use mf2::{Entry, VCard, Feed, Food, POSTS_PER_PAGE};
 
+pub mod admin;
+
 pub mod assets {
     use axum::response::{IntoResponse, Response};
     use axum::extract::Path;