From 7f47f2c83a646f55e651c396e8aa1719821dbd2b Mon Sep 17 00:00:00 2001 From: Nya Candy Date: Tue, 25 Apr 2023 10:12:10 +0800 Subject: [PATCH] feat: healthcheck api --- src/pages/api/healthcheck.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 src/pages/api/healthcheck.ts diff --git a/src/pages/api/healthcheck.ts b/src/pages/api/healthcheck.ts new file mode 100644 index 00000000..52f5b68c --- /dev/null +++ b/src/pages/api/healthcheck.ts @@ -0,0 +1,10 @@ +import { NextApiRequest, NextApiResponse } from "next" + +export default async function healthcheck( + req: NextApiRequest, + res: NextApiResponse, +) { + res.status(200).json({ + ok: true, + }) +}