one ting was missing
This commit is contained in:
@@ -17,7 +17,7 @@ pub struct Arrival {
|
|||||||
direction: bool,
|
direction: bool,
|
||||||
}
|
}
|
||||||
|
|
||||||
use sqlx::PgPool;
|
use sqlx::{PgPool, query_as};
|
||||||
use web::Data;
|
use web::Data;
|
||||||
#[get("all")]
|
#[get("all")]
|
||||||
async fn show_arrivals(db_pool: Data<PgPool>) -> impl Responder {
|
async fn show_arrivals(db_pool: Data<PgPool>) -> impl Responder {
|
||||||
|
|||||||
Reference in New Issue
Block a user