aboutsummaryrefslogtreecommitdiffstats
path: root/src/controllers/film.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/controllers/film.rs')
-rw-r--r--src/controllers/film.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/controllers/film.rs b/src/controllers/film.rs
index e61a543..827b3ab 100644
--- a/src/controllers/film.rs
+++ b/src/controllers/film.rs
@@ -18,7 +18,7 @@
use crate::{
db,
- models::film,
+ models,
};
use rocket::get;
@@ -27,6 +27,6 @@ use rocket_contrib::{
};
#[get("/")]
-pub fn get_films(db: db::Connection) -> Json<Vec<film::Film>> {
+pub fn get_films(db: db::Connection) -> Json<Vec<models::Film>> {
Json(db.get_films().unwrap())
}