This commit is contained in:
LinlyBoi
2023-12-17 23:57:55 +02:00
parent 8edbc7e61d
commit a09d19d442

View File

@@ -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)
} }