diff options
author | Cara Salter <cara@devcara.com> | 2021-12-17 19:57:03 -0500 |
---|---|---|
committer | Cara Salter <cara@devcara.com> | 2021-12-17 19:57:03 -0500 |
commit | ef01d3badb9765271a5bf55a4f0702b68f099e2e (patch) | |
tree | 19cfe6d0409418dcaa9bd15635cd71d003f74a4d /src/blog | |
download | site-ef01d3badb9765271a5bf55a4f0702b68f099e2e.tar.gz site-ef01d3badb9765271a5bf55a4f0702b68f099e2e.zip |
Initial commit [WIP]
Some routing exists. Still needs templating etc
Signed-off-by: Cara Salter <cara@devcara.com>
Diffstat (limited to 'src/blog')
-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") + } +} |