Add a logo as favicon
This commit is contained in:
parent
1a5716a734
commit
f6ae927d5c
10 changed files with 151 additions and 17 deletions
|
|
@ -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"),
|
||||
)
|
||||
}),
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue