new struct pog
This commit is contained in:
@@ -28,6 +28,10 @@ async fn show_arrivals(db_pool: Data<PgPool>) -> impl Responder {
|
|||||||
.content_type("application/json")
|
.content_type("application/json")
|
||||||
.json(arrivals)
|
.json(arrivals)
|
||||||
}
|
}
|
||||||
|
struct ArrivalFilter {
|
||||||
|
tram_line: i32,
|
||||||
|
week_day: i32,
|
||||||
|
}
|
||||||
|
|
||||||
#[get("specific")]
|
#[get("specific")]
|
||||||
async fn show_specific(db_pool: Data<PgPool>, t_line: Data<i32>, week_day: Data<i32>) -> impl Responder {
|
async fn show_specific(db_pool: Data<PgPool>, t_line: Data<i32>, week_day: Data<i32>) -> impl Responder {
|
||||||
|
|||||||
Reference in New Issue
Block a user