12 lines
293 B
TypeScript
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",
|
|
});
|
|
}
|