From b02882d1d586dbc481a4c002e6e9a5892daabc9f Mon Sep 17 00:00:00 2001 From: Vika Date: Sun, 20 Apr 2025 09:16:35 +0300 Subject: Expose custom CSS as a route The admin dashboard (that's not done yet) should include methods for setting this field. For now, it could very well be set through editing the database manually. #ManualUntilItHurts Change-Id: Ibef6fca5f1d19f237e660bf3a13b4d72c8c08a0a --- src/lib.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/lib.rs') diff --git a/src/lib.rs b/src/lib.rs index 0df5e5d..c32137b 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -273,6 +273,10 @@ where "/.kittybox/static/{*path}", axum::routing::get(crate::frontend::statics), ) + .route( + "/.kittybox/custom_style.css", + get(crate::frontend::custom_css::), + ) .route("/.kittybox/coffee", get(teapot_route)) .nest( "/.kittybox/micropub/client", -- cgit 1.4.1