test.ts 200 B

12345678
  1. import type { NextApiRequest, NextApiResponse } from 'next';
  2. export default async function handler(
  3. req: NextApiRequest,
  4. res: NextApiResponse,
  5. ) {
  6. res.status(200).json({ message: 'hello' });
  7. }