diff --git a/pages/api/healthcheck.ts b/pages/api/healthcheck.ts new file mode 100644 index 0000000..bc9033f --- /dev/null +++ b/pages/api/healthcheck.ts @@ -0,0 +1,30 @@ +import { NextApiRequest, NextApiResponse } from "next"; + +/** + * ============================================================================== + * Imports + * ============================================================================== + */ + +/** ****************************************************************************** */ +/** ****************************************************************************** */ +/** ****************************************************************************** */ +/** ****************************************************************************** */ +/** ****************************************************************************** */ +/** ****************************************************************************** */ + +/** + * API handler + * ============================================================================== + * @type {import("next").NextApiHandler} + */ +export default async function handler( + req: NextApiRequest, + res: NextApiResponse +) { + if (req.method !== "GET") return res.json({ msg: "Failed!" }); + + res.json({ + success: true, + }); +}