aboutsummaryrefslogtreecommitdiffstats
path: root/src/routes.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/routes.rs')
-rw-r--r--src/routes.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/routes.rs b/src/routes.rs
index b48fdb2..e2e068a 100644
--- a/src/routes.rs
+++ b/src/routes.rs
@@ -48,7 +48,10 @@ pub fn authenticated_transaction_propose(
48 .and(warp::path::end()) 48 .and(warp::path::end())
49 .and(warp::post()) 49 .and(warp::post())
50 .and(custom_filters::transaction_json_body()) // returns transaction 50 .and(custom_filters::transaction_json_body()) // returns transaction
51 .and(custom_filters::transaction_header()) // returns Transaction 51 .map(|t: Transaction| {
52 with_auth(db.clone(), t)
53 })
54 .and(custom_filters::transaction_json_body()) // returns transaction
52 .and(custom_filters::with_db(db)) // wraps db 55 .and(custom_filters::with_db(db)) // wraps db
53 .and_then(handlers::propose_authenticated_transaction) // uses db, transaction and authenticated 56 .and_then(handlers::propose_authenticated_transaction) // uses db, transaction and authenticated
54 57