fej/src/ivago/mod.rs

19 lines
402 B
Rust
Raw Normal View History

2021-03-06 00:25:40 +01:00
#[cfg(test)] mod tests;
mod controller;
use controller as ctrl;
2021-03-06 00:25:40 +01:00
pub fn routes() -> Vec<rocket::Route> {
routes![
search_streets,
]
2021-03-06 00:25:40 +01:00
}
// URL: https://www.ivago.be/nl/particulier/autocomplete/garbage/streets?q=Lange
#[get("/search?<street>", format="json")]
2021-03-06 00:25:40 +01:00
pub fn search_streets(street: String) -> String {
// let response = send(request.body(()).unwrap());
"".to_string()
2021-03-06 00:25:40 +01:00
}