Skip to content

Commit bcb3304

Browse files
committed
changed to new url
1 parent 25861a4 commit bcb3304

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/core/api_connector.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ pub struct APIConnector {}
1515
#[async_trait]
1616
impl APIOperations for APIConnector {
1717
async fn fetch_plugins() -> Result<HashMap<String, BasePlugin>, APIError> {
18-
match reqwest::get("https://young-hamlet-23901.herokuapp.com/plugins").await {
18+
match reqwest::get("https://lembas-backend.herokuapp.com/plugins").await {
1919
Ok(response) => match response.json::<HashMap<String, BasePlugin>>().await {
2020
Ok(plugins) => Ok(plugins),
2121
Err(_) => Err(APIError::FetchError),
@@ -26,7 +26,7 @@ impl APIOperations for APIConnector {
2626

2727
fn fetch_details(title: &str) -> DetailsPlugin {
2828
let response = reqwest::blocking::get(format!(
29-
"https://young-hamlet-23901.herokuapp.com/plugins/{}",
29+
"https://lembas-backend.herokuapp.com/plugins/{}",
3030
title.to_lowercase()
3131
))
3232
.expect("Failed to connect with API")

0 commit comments

Comments
 (0)