aboutsummaryrefslogtreecommitdiffstats
path: root/src/controllers/screening.rs
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2020-08-25 21:02:56 +0200
committerHarald Eilertsen <haraldei@anduin.net>2020-08-25 21:02:56 +0200
commit5c092e52767e62987ef0294cde1ce40905fc5199 (patch)
tree4bf2954cf70f444a1eb1b3485a197cff11971746 /src/controllers/screening.rs
parent69105c122cbdb3858f940428b65ceb01100fc600 (diff)
downloadramaskrik-social-5c092e52767e62987ef0294cde1ce40905fc5199.tar.gz
ramaskrik-social-5c092e52767e62987ef0294cde1ce40905fc5199.tar.bz2
ramaskrik-social-5c092e52767e62987ef0294cde1ce40905fc5199.zip
Use relative URLs for redirects.
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"))
}