[#19] Small changes
parent
552cf4bf7b
commit
3b5f1e9cf7
|
@ -1,6 +1,7 @@
|
||||||
FROM chewingbever/fej-builder:latest
|
FROM chewingbever/fej-builder:latest
|
||||||
|
|
||||||
ENV RUST_BACKTRACE=1
|
ENV RUST_BACKTRACE 1
|
||||||
|
ENV ROCKET_LOG debug
|
||||||
|
|
||||||
ENTRYPOINT ["cargo"]
|
ENTRYPOINT ["cargo"]
|
||||||
CMD ["run"]
|
CMD ["run"]
|
||||||
|
|
|
@ -15,9 +15,9 @@ pub fn routes() -> Vec<rocket::Route> {
|
||||||
/// # Arguments
|
/// # Arguments
|
||||||
///
|
///
|
||||||
/// * `search_term` - Search term to use to look for streets
|
/// * `search_term` - Search term to use to look for streets
|
||||||
#[get("/search?<search_term>")]
|
#[get("/search?<q>")]
|
||||||
pub fn route_search_streets(search_term: String) -> Result<Json<Vec<Street>>, Status> {
|
pub fn route_search_streets(q: String) -> Result<Json<Vec<Street>>, Status> {
|
||||||
Ok(Json(search_streets(search_term.as_str())?))
|
Ok(Json(search_streets(q.as_str())?))
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Handles returning of pickup times for a specific address. It returns a list
|
/// Handles returning of pickup times for a specific address. It returns a list
|
||||||
|
|
Loading…
Reference in New Issue