diff options
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 72bd891..85670c4 100644 --- a/src/main.rs +++ b/src/main.rs @@ -13,7 +13,7 @@ pub mod wellknown; use blog::*; use error::*; use pages::*; -use rocket::{catchers, fairing::AdHoc, http::Header, routes}; +use rocket::{catchers, fairing::AdHoc, fs::FileServer, http::Header, routes}; use source::*; use wellknown::*; @@ -26,6 +26,7 @@ async fn main() { Box::pin(async {}) })) .manage(prepare_source()) + .mount("/blog/assets", FileServer::from(ASSET_ROOT)) .mount( "/", routes![ |