Merge pull request #9 from MutinyWallet/add-favicon

Add favicon
This commit is contained in:
Tony Giorgio
2023-02-22 14:33:17 -06:00
committed by GitHub
2 changed files with 4 additions and 0 deletions

View File

@@ -232,6 +232,10 @@ pub async fn main(req: Request, env: Env, _ctx: Context) -> Result<Response> {
});
Response::from_websocket(pair.client)
})
.get("/favicon.ico", |_, _| {
let bytes: Vec<u8> = include_bytes!("../static/favicon.ico").to_vec();
Response::from_bytes(bytes)?.with_cors(&cors())
})
.options("/*catchall", |_, _| empty_response())
.run(req, env)
.await

BIN
static/favicon.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB