download static fonts to their own directory

This commit is contained in:
kaysond
2021-11-28 16:11:15 -08:00
committed by nitnelave
parent 4c05058eb2
commit 7731b8e593
5 changed files with 9 additions and 6 deletions

View File

@@ -72,6 +72,8 @@ fn http_config<Backend>(
.service(Files::new("/pkg", "./app/pkg"))
// Serve static files
.service(Files::new("/static", "./app/static"))
// Serve static fonts
.service(Files::new("/static/fonts", "./app/static/fonts"))
// Serve the index
.service(
web::scope("/")