diff options
author | Yigit Sever | 2021-04-17 19:47:47 +0300 |
---|---|---|
committer | Yigit Sever | 2021-04-17 19:47:47 +0300 |
commit | d521561b3705bcbb5979a4ed9a768d2c9256df73 (patch) | |
tree | 28932d856e4827d4d9e7f90aaa3fca13cfbe4b83 /src/routes.rs | |
parent | 9ead8e1ffa7bc8619aa7a1fd5802538ed927581e (diff) | |
download | gradecoin-d521561b3705bcbb5979a4ed9a768d2c9256df73.tar.gz gradecoin-d521561b3705bcbb5979a4ed9a768d2c9256df73.tar.bz2 gradecoin-d521561b3705bcbb5979a4ed9a768d2c9256df73.zip |
Rename functions and move checks
Proposals are authenticated, no need to parrot
Diffstat (limited to 'src/routes.rs')
-rw-r--r-- | src/routes.rs | 4 |
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 | } |