Fix static serve
This commit is contained in:
parent
3b0d965140
commit
73d0ce1838
|
@ -14,7 +14,7 @@ pub fn rocket(config: config::Config) -> Result<rocket::Rocket, ()> {
|
||||||
.manage(database::create_db_pool(config))
|
.manage(database::create_db_pool(config))
|
||||||
.attach(Template::fairing())
|
.attach(Template::fairing())
|
||||||
.mount("/", routes::routes())
|
.mount("/", routes::routes())
|
||||||
.mount("/public", StaticFiles::new(public_path, ServeOptions::None));
|
.mount("/", StaticFiles::new(public_path, ServeOptions::None));
|
||||||
|
|
||||||
Ok(result)
|
Ok(result)
|
||||||
}
|
}
|
||||||
|
|
Reference in New Issue