diff --git a/src/favicon.png b/src/favicon.png new file mode 100644 index 0000000..43d3b65 Binary files /dev/null and b/src/favicon.png differ diff --git a/src/server.rs b/src/server.rs index 1a3061f..5567503 100644 --- a/src/server.rs +++ b/src/server.rs @@ -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);