Ok
This commit is contained in:
@@ -22,7 +22,7 @@ async fn show_arrivals(db_pool: Data<PgPool>) -> impl Responder {
|
|||||||
.fetch_all(db_pool.get_ref())
|
.fetch_all(db_pool.get_ref())
|
||||||
.await
|
.await
|
||||||
.expect("Could not fetch arrivals");
|
.expect("Could not fetch arrivals");
|
||||||
HttpResponse::Ok()
|
HttpResponse::Ok()
|
||||||
.content_type("application/json")
|
.content_type("application/json")
|
||||||
.json(arrivals)
|
.json(arrivals)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user