personal-site/pages/api/healthcheck.ts

13 lines
278 B
TypeScript
Raw Permalink Normal View History

2024-10-04 20:43:03 +00:00
import { NextApiRequest, NextApiResponse } from "next";
export default async function handler(
req: NextApiRequest,
res: NextApiResponse
) {
if (req.method !== "GET") return res.json({ msg: "Failed!" });
res.json({
success: true,
});
}