diff options
Diffstat (limited to 'src/controllers/room.rs')
-rw-r--r-- | src/controllers/room.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/controllers/room.rs b/src/controllers/room.rs index 6458f86..9a4f4c2 100644 --- a/src/controllers/room.rs +++ b/src/controllers/room.rs @@ -63,5 +63,5 @@ pub struct NewRoomForm { #[post("/", format = "application/x-www-form-urlencoded", data = "<room>")] pub fn create_room(db: db::Connection, room: Form<NewRoomForm>) -> Result<Redirect, Box<dyn Error>> { db.create_room(&room.name)?; - Ok(Redirect::to("/rooms")) + Ok(Redirect::to("rooms")) } |