personal-site/pages/api/test.ts
2023-08-21 09:14:02 +01:00

12 lines
293 B
TypeScript

import { NextApiHandler, NextApiRequest, NextApiResponse } from "next";
/**
* @type {NextApiHandler}
*/
export default function handler(req: NextApiRequest, res: NextApiResponse) {
return res.status(200).json({
title: "Hello There",
message: "General Kenobi",
});
}