personal-site/pages/api/healthcheck.ts

31 lines
1.1 KiB
TypeScript
Raw Normal View History

2024-10-04 20:43:03 +00:00
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,
});
}