diff --git a/docker/Dockerfile.dev b/docker/Dockerfile.dev index a1a1e92..8ebeab3 100644 --- a/docker/Dockerfile.dev +++ b/docker/Dockerfile.dev @@ -1,6 +1,7 @@ FROM chewingbever/fej-builder:latest -ENV RUST_BACKTRACE=1 +ENV RUST_BACKTRACE 1 +ENV ROCKET_LOG debug ENTRYPOINT ["cargo"] CMD ["run"] diff --git a/src/ivago/mod.rs b/src/ivago/mod.rs index 0e7bebc..627e89b 100644 --- a/src/ivago/mod.rs +++ b/src/ivago/mod.rs @@ -15,9 +15,9 @@ pub fn routes() -> Vec { /// # Arguments /// /// * `search_term` - Search term to use to look for streets -#[get("/search?")] -pub fn route_search_streets(search_term: String) -> Result>, Status> { - Ok(Json(search_streets(search_term.as_str())?)) +#[get("/search?")] +pub fn route_search_streets(q: String) -> Result>, Status> { + Ok(Json(search_streets(q.as_str())?)) } /// Handles returning of pickup times for a specific address. It returns a list