diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/custom_filters.rs | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/custom_filters.rs b/src/custom_filters.rs index 7caf71a..8c36d02 100644 --- a/src/custom_filters.rs +++ b/src/custom_filters.rs | |||
@@ -10,11 +10,6 @@ pub fn with_db(db: Db) -> impl Filter<Extract = (Db,), Error = Infallible> + Clo | |||
10 | warp::any().map(move || db.clone()) | 10 | warp::any().map(move || db.clone()) |
11 | } | 11 | } |
12 | 12 | ||
13 | // Optional query params to allow pagination | ||
14 | // pub fn list_options() -> impl Filter<Extract = (ListOptions,), Error = Rejection> + Clone { | ||
15 | // warp::query::<ListOptions>() | ||
16 | // } | ||
17 | |||
18 | // Accept only json encoded Transaction body and reject big payloads | 13 | // Accept only json encoded Transaction body and reject big payloads |
19 | pub fn transaction_json_body() -> impl Filter<Extract = (Transaction,), Error = Rejection> + Clone { | 14 | pub fn transaction_json_body() -> impl Filter<Extract = (Transaction,), Error = Rejection> + Clone { |
20 | warp::body::content_length_limit(1024 * 32).and(warp::body::json()) | 15 | warp::body::content_length_limit(1024 * 32).and(warp::body::json()) |