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