Fix configs being fetched from the wrong location

This commit is contained in:
Leonard Steppy 2025-02-15 21:40:18 +01:00
parent 048c6c04fb
commit 922573ff65

View File

@ -138,7 +138,7 @@ async fn load_config<T>(name: &str) -> Result<Option<T>, String>
where
T: for<'a> Deserialize<'a>,
{
let response = Request::get(&format!("/{name}.json"))
let response = Request::get(&format!("./{name}.json"))
.send()
.await
.map_err(|e| format!("HTTP error: {e}"))?;