diff options
Diffstat (limited to 'src/routes.rs')
-rw-r--r-- | src/routes.rs | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/src/routes.rs b/src/routes.rs index f53a20c..60e4ffa 100644 --- a/src/routes.rs +++ b/src/routes.rs | |||
@@ -7,12 +7,16 @@ use warp::{Filter, filters::BoxedFilter, Rejection, Reply}; | |||
7 | 7 | ||
8 | /// Every route combined for a single network | 8 | /// Every route combined for a single network |
9 | pub fn network(db: Db) -> BoxedFilter<(impl Reply,)> { | 9 | pub fn network(db: Db) -> BoxedFilter<(impl Reply,)> { |
10 | transaction_list(db.clone()) | 10 | let url_prefix = db.config.url_prefix.clone(); |
11 | .or(register_user(db.clone())) | 11 | warp::path(url_prefix) |
12 | .or(auth_transaction_propose(db.clone())) | 12 | .and( |
13 | .or(auth_block_propose(db.clone())) | 13 | transaction_list(db.clone()) |
14 | .or(list_users(db.clone())) | 14 | .or(register_user(db.clone())) |
15 | .or(block_list(db)) | 15 | .or(auth_transaction_propose(db.clone())) |
16 | .or(auth_block_propose(db.clone())) | ||
17 | .or(list_users(db.clone())) | ||
18 | .or(block_list(db)) | ||
19 | ) | ||
16 | .boxed() | 20 | .boxed() |
17 | } | 21 | } |
18 | 22 | ||