summaryrefslogtreecommitdiff
path: root/src/misc/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/misc/mod.rs')
-rw-r--r--src/misc/mod.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/misc/mod.rs b/src/misc/mod.rs
new file mode 100644
index 0000000..5942b8c
--- /dev/null
+++ b/src/misc/mod.rs
@@ -0,0 +1,10 @@
+pub mod handlers {
+ use color_eyre::Result;
+ use warp::{Reply, Rejection, http::Response};
+ use crate::templates::{self, Html, RenderRucte};
+
+ pub async fn index() -> Result<impl Reply, Rejection> {
+ Response::builder()
+ .html(|o| templates::index_html(o))
+ }
+}