From 38a928a47f94d9f456c9c53f5db4fcd19165e7ac Mon Sep 17 00:00:00 2001 From: Yigit Sever Date: Sat, 10 Apr 2021 15:14:37 +0300 Subject: agliyo --- src/routes.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/routes.rs') 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( .and(warp::path::end()) .and(warp::post()) .and(custom_filters::transaction_json_body()) // returns transaction - .and(custom_filters::transaction_header()) // returns Transaction + .map(|t: Transaction| { + with_auth(db.clone(), t) + }) + .and(custom_filters::transaction_json_body()) // returns transaction .and(custom_filters::with_db(db)) // wraps db .and_then(handlers::propose_authenticated_transaction) // uses db, transaction and authenticated -- cgit v1.2.3-70-g09d2