Commit 172b9489 authored by Zachary Dunn's avatar Zachary Dunn

Fix StaticFiles declaration

parent 9b58e2a4
......@@ -36,6 +36,7 @@ fn main() {
.mount("/photos", routes::photos::routes())
.mount("/likes", routes::likes::routes())
.mount("/boosts", routes::boosts::routes())
.mount("/public", StaticFiles::from("/public"))
// should static files be served from a absolute path, eg. /var/www/public?
.mount("/public", StaticFiles::from(concat!(env!("CARGO_MANIFEST_DIR"), "/public")))
.launch();
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment