From b629dc4f7d03c493a4c173d63ef5205b6a24b838 Mon Sep 17 00:00:00 2001 From: Vika Date: Mon, 8 Jul 2024 23:56:57 +0300 Subject: WIP: admin (not wired up yet, and DEFINITELY NOT SECURE, DO NOT WIRE UP) --- templates/src/admin.rs | 5 +++++ templates/src/lib.rs | 2 ++ 2 files changed, 7 insertions(+) create mode 100644 templates/src/admin.rs (limited to 'templates') 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; -- cgit 1.4.1