app: Add style.css, improve classes

Also change the server to be able to serve style.css.
This commit is contained in:
Valentin Tolmer
2021-10-15 17:20:37 +09:00
committed by nitnelave
parent 3912d62623
commit f4edb99379
10 changed files with 304 additions and 237 deletions

View File

@@ -56,7 +56,7 @@ fn http_config<Backend>(
}))
// Serve index.html and main.js, and default to index.html.
.route(
"/{filename:(index\\.html|main\\.js)?}",
"/{filename:(index\\.html|main\\.js|style\\.css)?}",
web::get().to(index),
)
.service(web::scope("/auth").configure(auth_service::configure_server::<Backend>))