diff options
Diffstat (limited to 'src/controllers/film.rs')
-rw-r--r-- | src/controllers/film.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/controllers/film.rs b/src/controllers/film.rs index 70a6042..f407a4b 100644 --- a/src/controllers/film.rs +++ b/src/controllers/film.rs @@ -64,5 +64,5 @@ pub struct NewFilmForm { #[post("/", format = "application/x-www-form-urlencoded", data = "<film>")] pub fn create_film(db: db::Connection, film: Form<NewFilmForm>) -> Result<Redirect, Box<dyn Error>> { db.create_film(&film.title, &film.url)?; - Ok(Redirect::to("/films")) + Ok(Redirect::to("films")) } |