From bcb33047446f67a8f268fb50e9e1229e5faf7371 Mon Sep 17 00:00:00 2001 From: Marius Wilms Date: Sat, 29 May 2021 10:39:22 +0200 Subject: [PATCH] changed to new url --- src/core/api_connector.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/api_connector.rs b/src/core/api_connector.rs index d072c3d..ab4450b 100644 --- a/src/core/api_connector.rs +++ b/src/core/api_connector.rs @@ -15,7 +15,7 @@ pub struct APIConnector {} #[async_trait] impl APIOperations for APIConnector { async fn fetch_plugins() -> Result, APIError> { - match reqwest::get("https://young-hamlet-23901.herokuapp.com/plugins").await { + match reqwest::get("https://lembas-backend.herokuapp.com/plugins").await { Ok(response) => match response.json::>().await { Ok(plugins) => Ok(plugins), Err(_) => Err(APIError::FetchError), @@ -26,7 +26,7 @@ impl APIOperations for APIConnector { fn fetch_details(title: &str) -> DetailsPlugin { let response = reqwest::blocking::get(format!( - "https://young-hamlet-23901.herokuapp.com/plugins/{}", + "https://lembas-backend.herokuapp.com/plugins/{}", title.to_lowercase() )) .expect("Failed to connect with API")