Compare commits

..

2 commits

Author SHA1 Message Date
Rob Ede
13f5983c0a
refactor: migrate web server to Actix Web 2024-06-01 14:25:10 +01:00
Rob Ede
b579dc805d
refactor: migrate to tracing for logging (#226) 2024-05-29 11:35:34 +01:00

View file

@ -267,7 +267,7 @@ fn status_format_analysis(
}
pub(crate) fn static_files(cfg: &mut ServiceConfig) {
cfg.service(Resource::new(STATIC_STYLE_CSS_PATH).to(|| async {
cfg.service(Resource::new(STATIC_STYLE_CSS_PATH).get(|| async {
HttpResponse::Ok()
.insert_header(ContentType(mime::TEXT_CSS_UTF_8))
.insert_header(ETag(EntityTag::new_strong(
@ -280,7 +280,7 @@ pub(crate) fn static_files(cfg: &mut ServiceConfig) {
]))
.body(assets::STATIC_STYLE_CSS)
}))
.service(Resource::new(STATIC_FAVICON_PATH).to(|| async {
.service(Resource::new(STATIC_FAVICON_PATH).get(|| async {
HttpResponse::Ok()
.insert_header(ContentType(mime::IMAGE_SVG))
.body(assets::STATIC_FAVICON)