Compare commits
No commits in common. "baca6223406c01e778082ad7c069c1aca5c7d93c" and "4a32349c9cfac368756d47d5828d7ee34f72a068" have entirely different histories.
baca622340
...
4a32349c9c
|
@ -4,8 +4,6 @@ FROM alpine:latest AS builder
|
||||||
ENV PATH "$PATH:/root/.cargo/bin"
|
ENV PATH "$PATH:/root/.cargo/bin"
|
||||||
# Needed for proper compiling of openssl-dev
|
# Needed for proper compiling of openssl-dev
|
||||||
ENV RUSTFLAGS "-C target-feature=-crt-static"
|
ENV RUSTFLAGS "-C target-feature=-crt-static"
|
||||||
# Otherwise, the debug build can't be used from the container
|
|
||||||
ENV ROCKET_ADDRESS "0.0.0.0"
|
|
||||||
|
|
||||||
WORKDIR /usr/src/app
|
WORKDIR /usr/src/app
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
FROM chewingbever/fej-builder:latest
|
FROM chewingbever/fej-builder:latest
|
||||||
|
|
||||||
ENV RUST_BACKTRACE 1
|
ENV RUST_BACKTRACE=1
|
||||||
|
|
||||||
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?<q>")]
|
#[get("/search?<search_term>")]
|
||||||
pub fn route_search_streets(q: String) -> Result<Json<Vec<Street>>, Status> {
|
pub fn route_search_streets(search_term: String) -> Result<Json<Vec<Street>>, Status> {
|
||||||
Ok(Json(search_streets(q.as_str())?))
|
Ok(Json(search_streets(search_term.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