Removed unnecessary content type

This commit is contained in:
Jef Roosens 2021-03-23 12:16:01 +01:00
parent e81205bef7
commit 7f8da3e584
Signed by: Jef Roosens
GPG key ID: B580B976584B5F30

View file

@ -12,7 +12,7 @@ pub fn routes() -> Vec<rocket::Route> {
// 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?<street>", format="json")]
#[get("/search?<street>")]
pub fn search_streets_json(street: String) -> Json<Vec<controller::Street>> {
match controller::search_streets(&street) {
Ok(streets) => Json(streets),