mirror of
https://github.com/aljazceru/blastr.git
synced 2025-12-17 05:54:26 +01:00
Add favicon
This commit is contained in:
@@ -227,6 +227,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
BIN
static/favicon.ico
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 15 KiB |
Reference in New Issue
Block a user