From 204dbc1f887f42e4a5ea734895ef36c5c434890f Mon Sep 17 00:00:00 2001 From: Yigit Sever Date: Fri, 16 Apr 2021 16:39:23 +0300 Subject: Add existing user get support --- src/routes.rs | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/routes.rs') diff --git a/src/routes.rs b/src/routes.rs index 52d357a..211f832 100644 --- a/src/routes.rs +++ b/src/routes.rs @@ -18,10 +18,19 @@ pub fn consensus_routes(db: Db) -> impl Filter impl Filter + Clone { + warp::path!("user") + .and(warp::get()) + .and(custom_filters::with_db(db)) + .and_then(handlers::user_list_handler) +} + /// POST /register warp route pub fn register_user(db: Db) -> impl Filter + Clone { warp::path!("register") -- cgit v1.2.3-70-g09d2