Add a logo as favicon

This commit is contained in:
Igor Katson 2023-11-27 17:21:45 +00:00
parent 1a5716a734
commit f6ae927d5c
No known key found for this signature in database
GPG key ID: B4EC22B66D61A3F5
10 changed files with 151 additions and 17 deletions

View file

@ -198,11 +198,20 @@ impl HttpApi {
}),
)
.route(
"/app.js",
"/assets/index.js",
get(|| async {
(
[("Content-Type", "application/javascript")],
include_str!("../webui/dist/app.js"),
include_str!("../webui/dist/assets/index.js"),
)
}),
)
.route(
"/assets/logo.svg",
get(|| async {
(
[("Content-Type", "image/svg+xml")],
include_str!("../webui/dist/assets/logo.svg"),
)
}),
);