diff options
Diffstat (limited to 'src/blog/mod.rs')
-rw-r--r-- | src/blog/mod.rs | 13 |
1 files changed, 13 insertions, 0 deletions
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<impl Reply, Rejection> { + Ok("test") + } + + pub async fn post(name: String) -> Result<impl Reply, Rejection> { + Ok("Post test") + } +} |