summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--src/middlewares/Authentication.ts1
-rw-r--r--src/routes/ping.ts9
2 files changed, 10 insertions, 0 deletions
diff --git a/src/middlewares/Authentication.ts b/src/middlewares/Authentication.ts
index 76b335ad..01b7ef57 100644
--- a/src/middlewares/Authentication.ts
+++ b/src/middlewares/Authentication.ts
@@ -6,6 +6,7 @@ export const NO_AUTHORIZATION_ROUTES = [
 	/^\/api(\/v\d+)?\/auth\/login/,
 	/^\/api(\/v\d+)?\/auth\/register/,
 	/^\/api(\/v\d+)?\/webhooks\//,
+	/^\/api(\/v\d+)?\/ping/,
 	/^\/api(\/v\d+)?\/gateway/,
 	/^\/api(\/v\d+)?\/experiments/,
 	/^\/api(\/v\d+)?\/guilds\/\d+\/widget\.(json|png)/
diff --git a/src/routes/ping.ts b/src/routes/ping.ts
new file mode 100644
index 00000000..38daf81e
--- /dev/null
+++ b/src/routes/ping.ts
@@ -0,0 +1,9 @@
+import { Router, Response, Request } from "express";
+
+const router = Router();
+
+router.get("/", (req: Request, res: Response) => {
+	res.send("pong");
+});
+
+export default router;