feat: add favicon for admin frontend

This commit is contained in:
Fu Zi Xiang 2023-11-28 11:54:39 +08:00
parent 41f1f15c59
commit 1647912347
No known key found for this signature in database
2 changed files with 4 additions and 0 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

View File

@ -51,6 +51,10 @@ async fn main() {
.allow_origin(Any);
let app = Router::new()
.route(
"/favicon.ico",
get(|| async { Redirect::permanent("/assets/favicon.ico") }),
)
.route("/", get(|| async { Redirect::permanent("/web") }))
.layer(ServiceBuilder::new().layer(cors))
.nest_service("/web", web_app_router)