From 099624218ca84503d31c0f4c21139138d55d0630 Mon Sep 17 00:00:00 2001 From: Harald Eilertsen Date: Sun, 14 Jan 2018 20:01:33 +0100 Subject: Serve static files from public directory if no other route match. --- src/main.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/main.rs') diff --git a/src/main.rs b/src/main.rs index 4e96a65..4876b35 100644 --- a/src/main.rs +++ b/src/main.rs @@ -26,7 +26,8 @@ fn main() { .mount("/", routes![ home_controller::index, - home_controller::index_json]) + home_controller::index_json, + home_controller::public_file]) .mount("/posts", routes![ posts_controller::new, -- cgit v1.2.3