SYNC-HP用のサンプル
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
307B

  1. // Next.js API route support: https://nextjs.org/docs/api-routes/introduction
  2. import type { NextApiRequest, NextApiResponse } from 'next'
  3. type Data = {
  4. name: string
  5. }
  6. export default function handler(
  7. req: NextApiRequest,
  8. res: NextApiResponse<Data>
  9. ) {
  10. res.status(200).json({ name: 'John Doe' })
  11. }