From 365814303d02c7accc1e87db0d5c26015df4afd9 Mon Sep 17 00:00:00 2001 From: Harm Aarts Date: Fri, 26 Oct 2018 17:07:46 +0200 Subject: [PATCH] Replace query parameter values with placeholders --- api/src/handlers.rs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/api/src/handlers.rs b/api/src/handlers.rs index 301ec9934..47eb6e22b 100644 --- a/api/src/handlers.rs +++ b/api/src/handlers.rs @@ -820,18 +820,18 @@ pub fn build_router( "get chain/outputs".to_string(), "get status".to_string(), "get txhashset/roots".to_string(), - "get txhashset/lastoutputs?n=10".to_string(), - "get txhashset/lastrangeproofs?n=1".to_string(), - "get txhashset/lastkernels?n=1".to_string(), - "get txhashset/outputs?start_index=1&max=100".to_string(), "get txhashset/merkleproof?n=output_id".to_string(), + "get txhashset/lastoutputs?n=".to_string(), + "get txhashset/lastrangeproofs?n=".to_string(), + "get txhashset/lastkernels?n=".to_string(), + "get txhashset/outputs?start_index=&max=".to_string(), "get pool".to_string(), "post pool/push".to_string(), - "post peers/a.b.c.d:p/ban".to_string(), - "post peers/a.b.c.d:p/unban".to_string(), + "post peers/:/ban".to_string(), + "post peers/:/unban".to_string(), "get peers/all".to_string(), "get peers/connected".to_string(), - "get peers/a.b.c.d".to_string(), + "get peers/".to_string(), "get headers".to_string(), ]; let index_handler = IndexHandler { list: route_list };