1
0
Fork 0

Fix static serve

This commit is contained in:
Alex Kotov 2020-10-16 01:41:22 +05:00
parent 3b0d965140
commit 73d0ce1838
Signed by: kotovalexarian
GPG key ID: 553C0EBBEB5D5F08

View file

@ -14,7 +14,7 @@ pub fn rocket(config: config::Config) -> Result<rocket::Rocket, ()> {
.manage(database::create_db_pool(config))
.attach(Template::fairing())
.mount("/", routes::routes())
.mount("/public", StaticFiles::new(public_path, ServeOptions::None));
.mount("/", StaticFiles::new(public_path, ServeOptions::None));
Ok(result)
}