mirror of
https://github.com/xHyroM/roles-bot.git
synced 2024-11-24 01:01: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) => {
|
fetch: async (request: Request, env: Env) => {
|
||||||
if (!REDIS) setRedis(Redis.fromEnv(env));
|
if (!REDIS) setRedis(Redis.fromEnv(env));
|
||||||
|
|
||||||
|
if (new URL(request.url).pathname === "/ping") {
|
||||||
|
return new Response("Pong!", { status: 200 });
|
||||||
|
}
|
||||||
|
|
||||||
if (
|
if (
|
||||||
!request.headers.get("X-Signature-Ed25519") ||
|
!request.headers.get("X-Signature-Ed25519") ||
|
||||||
!request.headers.get("X-Signature-Timestamp")
|
!request.headers.get("X-Signature-Timestamp")
|
||||||
|
|
Loading…
Reference in a new issue