Skip to content
This repository has been archived by the owner on Aug 28, 2023. It is now read-only.

Commit

Permalink
Added trailing slash to URLs for requests to the core services (#227)
Browse files Browse the repository at this point in the history
  • Loading branch information
jpalvarezl authored Jan 18, 2021
1 parent aa3a88c commit 16aeeea
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/routes/about.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ pub fn info(context: Context) -> ApiResult<content::Json<String>> {

#[get("/about/backbone")]
pub fn backbone(context: Context) -> ApiResult<content::Json<String>> {
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()?))
}
2 changes: 1 addition & 1 deletion src/routes/collectibles.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion src/services/transactions_details.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ pub(super) fn get_multisig_transaction_details(
) -> ApiResult<TransactionDetails> {
let mut info_provider = DefaultInfoProvider::new(context);
let url = format!(
"{}/v1/multisig-transactions/{}",
"{}/v1/multisig-transactions/{}/",
base_transaction_service_url(),
safe_tx_hash
);
Expand Down

0 comments on commit 16aeeea

Please sign in to comment.