diff options
author | Carpenter, Adam (CORP) <adam.carpenter@adp.com> | 2021-12-08 15:29:59 -0500 |
---|---|---|
committer | Carpenter, Adam (CORP) <adam.carpenter@adp.com> | 2021-12-08 15:29:59 -0500 |
commit | 5e82b9ed1f7f236d596500478588dd2f84231fef (patch) | |
tree | 43e832a62c3dd242d093b47c26491d596de0bde1 /angelsharkd | |
parent | 3eb745f153873d537bdc788170fc878543e7899e (diff) | |
download | altruistic-angelshark-5e82b9ed1f7f236d596500478588dd2f84231fef.tar.xz altruistic-angelshark-5e82b9ed1f7f236d596500478588dd2f84231fef.zip |
feat: begin basic filter
Diffstat (limited to 'angelsharkd')
-rw-r--r-- | angelsharkd/src/routes/extensions/simple_deprov.rs | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/angelsharkd/src/routes/extensions/simple_deprov.rs b/angelsharkd/src/routes/extensions/simple_deprov.rs index 2b5ad40..eeb27a0 100644 --- a/angelsharkd/src/routes/extensions/simple_deprov.rs +++ b/angelsharkd/src/routes/extensions/simple_deprov.rs @@ -1,5 +1,12 @@ -use warp::{Filter, Rejection, Reply}; +use warp::{ + body::{content_length_limit, json}, + post, Filter, Rejection, Reply, +}; pub fn filter() -> impl Filter<Extract = impl Reply, Error = Rejection> + Clone { - warp::path("deprov").map(|| -> &str { todo!() }) // TODO: + warp::path("deprov") + .and(post()) + .and(content_length_limit(1024 * 16)) + .and(json()) + .map(|_: String| -> &str { todo!() }) // TODO: } |