mirror of
https://github.com/spacebarchat/server.git
synced 2026-08-14 09:00:07 +00:00
✨ ping route
This commit is contained in:
@@ -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)/
|
||||
|
||||
@@ -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;
|
||||
Reference in New Issue
Block a user