diff options
Diffstat (limited to 'src/controllers')
-rw-r--r-- | src/controllers/screening.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/controllers/screening.rs b/src/controllers/screening.rs index a26720e..5052075 100644 --- a/src/controllers/screening.rs +++ b/src/controllers/screening.rs @@ -18,7 +18,7 @@ use crate::{ db, - models::{Screening}, + models::AggregatedScreening, }; use rocket::get; @@ -27,6 +27,6 @@ use rocket_contrib::{ }; #[get("/")] -pub fn get_screenings(db: db::Connection) -> Json<Vec<Screening>> { - Json(db.get_screenings().unwrap()) +pub fn get_aggregated_screenings(db: db::Connection) -> Json<Vec<AggregatedScreening>> { + Json(db.get_aggregated_screenings().unwrap()) } |