diff options
author | Harald Eilertsen <haraldei@anduin.net> | 2018-01-14 20:01:33 +0100 |
---|---|---|
committer | Harald Eilertsen <haraldei@anduin.net> | 2018-01-14 20:01:33 +0100 |
commit | 099624218ca84503d31c0f4c21139138d55d0630 (patch) | |
tree | 421a4c1ac81fca011ae4752c50246a86f520a277 /src/main.rs | |
parent | 47e46a6e00c47622e99cfd65083887b3dce02716 (diff) | |
download | rocket-blog-099624218ca84503d31c0f4c21139138d55d0630.tar.gz rocket-blog-099624218ca84503d31c0f4c21139138d55d0630.tar.bz2 rocket-blog-099624218ca84503d31c0f4c21139138d55d0630.zip |
Serve static files from public directory if no other route match.
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 3 |
1 files changed, 2 insertions, 1 deletions
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, |