mirror of
https://github.com/JonasunderscoreJones/jonas_jones-api.git
synced 2025-10-23 00:59:18 +02:00
Added favicon route
This commit is contained in:
parent
431c6c080a
commit
69ea09b223
2 changed files with 3 additions and 1 deletions
BIN
src/favicon.png
Normal file
BIN
src/favicon.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 39 KiB |
|
@ -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);
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue