mirror of
https://github.com/xHyroM/roles-bot.git
synced 2024-11-12 20:18:06 +01:00
feat: /ping
This commit is contained in:
parent
679ea98296
commit
ee32db2f4d
1 changed files with 4 additions and 0 deletions
|
@ -27,6 +27,10 @@ export default {
|
|||
fetch: async (request: Request, env: Env) => {
|
||||
if (!REDIS) setRedis(Redis.fromEnv(env));
|
||||
|
||||
if (new URL(request.url).pathname === "/ping") {
|
||||
return new Response("Pong!", { status: 200 });
|
||||
}
|
||||
|
||||
if (
|
||||
!request.headers.get("X-Signature-Ed25519") ||
|
||||
!request.headers.get("X-Signature-Timestamp")
|
||||
|
|
Loading…
Reference in a new issue