From aa169ad1b3c277859f01413a945ea2d6f1375615 Mon Sep 17 00:00:00 2001 From: alpaylan Date: Mon, 12 Apr 2021 22:15:17 +0300 Subject: implement user authentication using jwt --- src/custom_filters.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/custom_filters.rs') diff --git a/src/custom_filters.rs b/src/custom_filters.rs index 315ba4a..f93f572 100644 --- a/src/custom_filters.rs +++ b/src/custom_filters.rs @@ -20,6 +20,10 @@ pub fn transaction_json_body() -> impl Filter impl Filter + Clone { + warp::header::header::("Authorization") +} + // Accept only json encoded Block body and reject big payloads // TODO: find a good limit for this <11-04-21, yigit> // pub fn block_json_body() -> impl Filter + Clone { -- cgit v1.2.3-70-g09d2