✨ ping route
This commit is contained in:
parent
a88767ead3
commit
cfde9dd2d5
@ -6,6 +6,7 @@ export const NO_AUTHORIZATION_ROUTES = [
|
|||||||
/^\/api(\/v\d+)?\/auth\/login/,
|
/^\/api(\/v\d+)?\/auth\/login/,
|
||||||
/^\/api(\/v\d+)?\/auth\/register/,
|
/^\/api(\/v\d+)?\/auth\/register/,
|
||||||
/^\/api(\/v\d+)?\/webhooks\//,
|
/^\/api(\/v\d+)?\/webhooks\//,
|
||||||
|
/^\/api(\/v\d+)?\/ping/,
|
||||||
/^\/api(\/v\d+)?\/gateway/,
|
/^\/api(\/v\d+)?\/gateway/,
|
||||||
/^\/api(\/v\d+)?\/experiments/,
|
/^\/api(\/v\d+)?\/experiments/,
|
||||||
/^\/api(\/v\d+)?\/guilds\/\d+\/widget\.(json|png)/
|
/^\/api(\/v\d+)?\/guilds\/\d+\/widget\.(json|png)/
|
||||||
|
9
src/routes/ping.ts
Normal file
9
src/routes/ping.ts
Normal file
@ -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;
|
Loading…
x
Reference in New Issue
Block a user