mirror of
https://github.com/aljazceru/blastr.git
synced 2025-12-17 05:54:26 +01:00
@@ -232,6 +232,10 @@ pub async fn main(req: Request, env: Env, _ctx: Context) -> Result<Response> {
|
|||||||
});
|
});
|
||||||
Response::from_websocket(pair.client)
|
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())
|
.options("/*catchall", |_, _| empty_response())
|
||||||
.run(req, env)
|
.run(req, env)
|
||||||
.await
|
.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