From 5e86d7ab9c5200d794c3adb2b422d20a2aefd2ce Mon Sep 17 00:00:00 2001 From: Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> Date: Sat, 13 Aug 2022 02:00:50 +0200 Subject: restructure to single project --- api/src/routes/-/healthz.ts | 17 ----------------- api/src/routes/-/readyz.ts | 17 ----------------- 2 files changed, 34 deletions(-) delete mode 100644 api/src/routes/-/healthz.ts delete mode 100644 api/src/routes/-/readyz.ts (limited to 'api/src/routes/-') diff --git a/api/src/routes/-/healthz.ts b/api/src/routes/-/healthz.ts deleted file mode 100644 index f7bcfebf..00000000 --- a/api/src/routes/-/healthz.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; 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