aboutsummaryrefslogtreecommitdiffstats
path: root/src/routes.rs
diff options
context:
space:
mode:
authorYigit Sever2021-04-10 15:14:37 +0300
committerYigit Sever2021-04-10 15:14:37 +0300
commit38a928a47f94d9f456c9c53f5db4fcd19165e7ac (patch)
treedfeeb91b3761d767962cc446ce7e31461ce3c124 /src/routes.rs
parent52b95ace5c67e37300c976f344bc0aacaa278639 (diff)
downloadgradecoin-38a928a47f94d9f456c9c53f5db4fcd19165e7ac.tar.gz
gradecoin-38a928a47f94d9f456c9c53f5db4fcd19165e7ac.tar.bz2
gradecoin-38a928a47f94d9f456c9c53f5db4fcd19165e7ac.zip
agliyo
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