Skip to content

Commit

Permalink
changed to new url
Browse files Browse the repository at this point in the history
  • Loading branch information
mawilms committed May 29, 2021
1 parent 25861a4 commit bcb3304
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/api_connector.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ pub struct APIConnector {}
#[async_trait]
impl APIOperations for APIConnector {
async fn fetch_plugins() -> Result<HashMap<String, BasePlugin>, 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::<HashMap<String, BasePlugin>>().await {
Ok(plugins) => Ok(plugins),
Err(_) => Err(APIError::FetchError),
Expand All @@ -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")
Expand Down

0 comments on commit bcb3304

Please sign in to comment.