Replace query parameter values with placeholders

This commit is contained in:
Harm Aarts 2018-10-26 17:07:46 +02:00
parent 322552dde4
commit 365814303d

View file

@ -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=<count>".to_string(),
"get txhashset/lastrangeproofs?n=<count>".to_string(),
"get txhashset/lastkernels?n=<count>".to_string(),
"get txhashset/outputs?start_index=<index>&max=<count>".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/<ip>:<port>/ban".to_string(),
"post peers/<ip>:<port>/unban".to_string(),
"get peers/all".to_string(),
"get peers/connected".to_string(),
"get peers/a.b.c.d".to_string(),
"get peers/<ip>".to_string(),
"get headers".to_string(),
];
let index_handler = IndexHandler { list: route_list };