aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.rs
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2021-08-25 19:45:34 +0200
committerHarald Eilertsen <haraldei@anduin.net>2021-08-25 19:45:34 +0200
commit6f27c2f3ac7fb75e1f4b071f84f879a447712725 (patch)
tree4d5066922d3e45877bcb37b7aaeab2242db697a7 /src/main.rs
parent0ba9752b0211c9add44ffb652e99444f4b4e36f3 (diff)
downloadramaskrik-social-6f27c2f3ac7fb75e1f4b071f84f879a447712725.tar.gz
ramaskrik-social-6f27c2f3ac7fb75e1f4b071f84f879a447712725.tar.bz2
ramaskrik-social-6f27c2f3ac7fb75e1f4b071f84f879a447712725.zip
Refactor event templates and add edit form.
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs13
1 files changed, 11 insertions, 2 deletions
diff --git a/src/main.rs b/src/main.rs
index 2b4d01b..978c702 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -35,10 +35,19 @@ fn rocket() -> _ {
event::index,
event::new,
event::create,
+ event::edit,
])
.mount("/", FileServer::from("public/"))
- .mount("/rooms", routes![room::get_rooms_json, room::list_rooms, room::new_room, room::create_room])
- .mount("/films", routes![film::get_films_json, film::list_films, film::new_film, film::create_film])
+ .mount("/rooms", routes![
+ room::get_rooms_json,
+ room::list_rooms,
+ room::new_room,
+ room::create_room])
+ .mount("/films", routes![
+ film::get_films_json,
+ film::list_films,
+ film::new_film,
+ film::create_film])
.mount("/screenings", routes![
screening::get_aggregated_screenings,
screening::list_screenings,