aboutsummaryrefslogtreecommitdiffstats
path: root/src/controllers/screening.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/controllers/screening.rs')
-rw-r--r--src/controllers/screening.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/controllers/screening.rs b/src/controllers/screening.rs
index cf7d1b1..06b0b84 100644
--- a/src/controllers/screening.rs
+++ b/src/controllers/screening.rs
@@ -93,7 +93,7 @@ pub fn create_screening(db: db::Connection, screening: Form<NewScreeningForm>) -
start_time,
end_time)?;
- Ok(Redirect::to("/screenings"))
+ Ok(Redirect::to("screenings"))
}
#[get("/<id>")]
@@ -140,7 +140,7 @@ pub fn update(db: db::Connection, screening: Form<EditScreeningForm>) -> Result<
start_time,
end_time)?;
- Ok(Redirect::to("/screenings"))
+ Ok(Redirect::to("screenings"))
}
#[derive(FromForm)]
@@ -151,5 +151,5 @@ pub struct DeleteScreeningForm {
#[delete("/", format = "application/x-www-form-urlencoded", data = "<screening>")]
pub fn delete(db: db::Connection, screening: Form<DeleteScreeningForm>) -> Result<Redirect, Box<dyn Error>> {
db.delete_screening(screening.screening_id)?;
- Ok(Redirect::to("/screenings"))
+ Ok(Redirect::to("screenings"))
}