Added favicon route

This commit is contained in:
Jonas_Jones 2023-12-16 05:50:38 +01:00
parent 431c6c080a
commit 69ea09b223
2 changed files with 3 additions and 1 deletions

BIN
src/favicon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 39 KiB

View file

@ -18,8 +18,10 @@ pub async fn serve() {
let socket_addr = parse_ip();
let favicon = warp::path("favicon.ico").and(warp::fs::file("./src/favicon.png"));
// GET (any) => reply with return from handle_path
let routes = get_v1_routes()
let routes = favicon.or(get_v1_routes())
.recover(handle_rejection);