1
0
mirror of https://github.com/spacebarchat/server.git synced 2024-11-11 05:02:37 +01:00

feat: initial addition of a healthz, readyz and metrics route

This commit is contained in:
Hayden Young 2021-10-14 18:27:19 +01:00
parent 2bf3ee4290
commit a20279c41f
No known key found for this signature in database
GPG Key ID: E5C78A4D88C0BA40
3 changed files with 30 additions and 0 deletions

View File

@ -0,0 +1,10 @@
import { Router, Response, Request } from "express";
import { route } from "@fosscord/api";
const router = Router();
router.get("/", route({}), (req: Request, res: Response) => {
res.sendStatus(200);
});
export default router;

View File

@ -0,0 +1,10 @@
import { Router, Response, Request } from "express";
import { route } from "@fosscord/api";
const router = Router();
router.get("/", route({}), (req: Request, res: Response) => {
res.sendStatus(200);
});
export default router;

View File

@ -0,0 +1,10 @@
import { Router, Response, Request } from "express";
import { route } from "@fosscord/api";
const router = Router();
router.get("/", route({}), (req: Request, res: Response) => {
res.sendStatus(200);
});
export default router;