aboutsummaryrefslogtreecommitdiffstats
path: root/src/routes.rs
diff options
context:
space:
mode:
authorYigit Sever2021-04-17 19:47:47 +0300
committerYigit Sever2021-04-17 19:47:47 +0300
commit86eb4e6ca5f4ce8f86350c4fe66833b006317a50 (patch)
treebee2792ba6033e3cd3529d8ceb17c27ba6735b1d /src/routes.rs
parentcd4214da789df660c5d1d70f390ff164da244335 (diff)
downloadgradecoin-86eb4e6ca5f4ce8f86350c4fe66833b006317a50.tar.gz
gradecoin-86eb4e6ca5f4ce8f86350c4fe66833b006317a50.tar.bz2
gradecoin-86eb4e6ca5f4ce8f86350c4fe66833b006317a50.zip
Rename functions and move checks
Proposals are authenticated, no need to parrot
Diffstat (limited to 'src/routes.rs')
-rw-r--r--src/routes.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/routes.rs b/src/routes.rs
index 211f832..f39e98a 100644
--- a/src/routes.rs
+++ b/src/routes.rs
@@ -65,7 +65,7 @@ pub fn auth_transaction_propose(
65 .and(custom_filters::transaction_json_body()) 65 .and(custom_filters::transaction_json_body())
66 .and(custom_filters::auth_header()) 66 .and(custom_filters::auth_header())
67 .and(custom_filters::with_db(db)) 67 .and(custom_filters::with_db(db))
68 .and_then(handlers::authorized_propose_transaction) 68 .and_then(handlers::propose_transaction)
69} 69}
70 70
71/// POST /block warp route 71/// POST /block warp route
@@ -75,5 +75,5 @@ pub fn auth_block_propose(db: Db) -> impl Filter<Extract = impl Reply, Error = R
75 .and(custom_filters::block_json_body()) 75 .and(custom_filters::block_json_body())
76 .and(custom_filters::auth_header()) 76 .and(custom_filters::auth_header())
77 .and(custom_filters::with_db(db)) 77 .and(custom_filters::with_db(db))
78 .and_then(handlers::authorized_propose_block) 78 .and_then(handlers::propose_block)
79} 79}