aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2020-08-25 16:30:38 +0200
committerHarald Eilertsen <haraldei@anduin.net>2020-08-25 16:30:38 +0200
commitd3d7a199130fbb6cf4a6a988d9a6d03264539483 (patch)
treef755b7232657d745b3c8dd9b2080be76e50604bb /src
parent639eb16af544ea051d2e091111bcd6427a1644d0 (diff)
downloadramaskrik-social-d3d7a199130fbb6cf4a6a988d9a6d03264539483.tar.gz
ramaskrik-social-d3d7a199130fbb6cf4a6a988d9a6d03264539483.tar.bz2
ramaskrik-social-d3d7a199130fbb6cf4a6a988d9a6d03264539483.zip
Reenable serving static files.
These have a rank higher (lower presedence) than the predefined routes.
Diffstat (limited to 'src')
-rw-r--r--src/lib.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib.rs b/src/lib.rs
index d01d817..6a9e488 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -38,6 +38,7 @@ pub fn build_rocket() -> Result<rocket::Rocket, Box<dyn Error>> {
event::new,
event::create,
])
+ .mount("/", rocket_contrib::serve::StaticFiles::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("/screenings", routes![