summaryrefslogtreecommitdiff
path: root/angelsharkd/src/routes/extensions
diff options
context:
space:
mode:
Diffstat (limited to 'angelsharkd/src/routes/extensions')
-rw-r--r--angelsharkd/src/routes/extensions/simple_deprov.rs11
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:
}