From d3d7a199130fbb6cf4a6a988d9a6d03264539483 Mon Sep 17 00:00:00 2001 From: Harald Eilertsen Date: Tue, 25 Aug 2020 16:30:38 +0200 Subject: Reenable serving static files. These have a rank higher (lower presedence) than the predefined routes. --- src/lib.rs | 1 + 1 file changed, 1 insertion(+) 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> { 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![ -- cgit v1.2.3