From f44f5d7ac2d24ff836c2e1d4b2fa58da04b13052 Mon Sep 17 00:00:00 2001 From: Madeline <46743919+MaddyUnderStars@users.noreply.github.com> Date: Sun, 25 Sep 2022 18:24:21 +1000 Subject: Refactor to mono-repo + upgrade packages --- api/src/routes/-/readyz.ts | 17 ----------------- 1 file changed, 17 deletions(-) delete mode 100644 api/src/routes/-/readyz.ts (limited to 'api/src/routes/-/readyz.ts') diff --git a/api/src/routes/-/readyz.ts b/api/src/routes/-/readyz.ts deleted file mode 100644 index f7bcfebf..00000000 --- a/api/src/routes/-/readyz.ts +++ /dev/null @@ -1,17 +0,0 @@ -import { Router, Response, Request } from "express"; -import { route } from "@fosscord/api"; -import { getConnection } from "typeorm"; - -const router = Router(); - -router.get("/", route({}), (req: Request, res: Response) => { - try { - // test that the database is alive & responding - getConnection(); - return res.sendStatus(200); - } catch (e) { - res.sendStatus(503); - } -}); - -export default router; -- cgit 1.5.1