diff --git a/src/ivago/mod.rs b/src/ivago/mod.rs index 8547130..d24dc28 100644 --- a/src/ivago/mod.rs +++ b/src/ivago/mod.rs @@ -13,8 +13,8 @@ pub fn routes() -> Vec { // URL: https://www.ivago.be/nl/particulier/autocomplete/garbage/streets?q=Lange // TODO make this async // TODO change this so it can return errors instead of empty json -#[get("/search?", format="json")] -pub fn route_search_streets(street: String) -> Json> { +#[get("/search?")] +pub fn search_streets_json(street: String) -> Json> { match controller::search_streets(&street) { Ok(streets) => Json(streets), Err(err) => Json(Vec::new()),