From ef01d3badb9765271a5bf55a4f0702b68f099e2e Mon Sep 17 00:00:00 2001 From: Cara Salter Date: Fri, 17 Dec 2021 19:57:03 -0500 Subject: Initial commit [WIP] Some routing exists. Still needs templating etc Signed-off-by: Cara Salter --- src/blog/mod.rs | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 src/blog/mod.rs (limited to 'src/blog/mod.rs') diff --git a/src/blog/mod.rs b/src/blog/mod.rs new file mode 100644 index 0000000..199d6db --- /dev/null +++ b/src/blog/mod.rs @@ -0,0 +1,13 @@ +pub mod handlers { + +use warp::{Reply, Rejection}; +use warp::http::Response; + + pub async fn list() -> Result { + Ok("test") + } + + pub async fn post(name: String) -> Result { + Ok("Post test") + } +} -- cgit v1.2.3