From 16aeeeab085f1813177f12b15e2fd1ba020c0b84 Mon Sep 17 00:00:00 2001 From: Jose Alvarez Date: Mon, 18 Jan 2021 10:05:55 +0100 Subject: [PATCH] Added trailing slash to URLs for requests to the core services (#227) --- src/routes/about.rs | 2 +- src/routes/collectibles.rs | 2 +- src/services/transactions_details.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/routes/about.rs b/src/routes/about.rs index 69e35999a..4a991a17f 100644 --- a/src/routes/about.rs +++ b/src/routes/about.rs @@ -15,6 +15,6 @@ pub fn info(context: Context) -> ApiResult> { #[get("/about/backbone")] pub fn backbone(context: Context) -> ApiResult> { - let url = format!("{}/v1/about", base_transaction_service_url()); + let url = format!("{}/v1/about/", base_transaction_service_url()); Ok(content::Json(context.client().get(&url).send()?.text()?)) } diff --git a/src/routes/collectibles.rs b/src/routes/collectibles.rs index 01dac0b77..e1f8cc9b1 100644 --- a/src/routes/collectibles.rs +++ b/src/routes/collectibles.rs @@ -15,7 +15,7 @@ pub fn list( let trusted = trusted.unwrap_or(false); let exclude_spam = exclude_spam.unwrap_or(true); let url = format!( - "{}/v1/safes/{}/collectibles?trusted={}&exclude_spam={}", + "{}/v1/safes/{}/collectibles/?trusted={}&exclude_spam={}", base_transaction_service_url(), safe_address, trusted, diff --git a/src/services/transactions_details.rs b/src/services/transactions_details.rs index 0af28f03d..c8d53ece4 100644 --- a/src/services/transactions_details.rs +++ b/src/services/transactions_details.rs @@ -23,7 +23,7 @@ pub(super) fn get_multisig_transaction_details( ) -> ApiResult { let mut info_provider = DefaultInfoProvider::new(context); let url = format!( - "{}/v1/multisig-transactions/{}", + "{}/v1/multisig-transactions/{}/", base_transaction_service_url(), safe_tx_hash );