mirror of
https://github.com/explosion/spaCy.git
synced 2025-03-15 15:42:24 +03:00
11 lines
305 B
TypeScript
11 lines
305 B
TypeScript
// Next.js API route support: https://nextjs.org/docs/api-routes/introduction
|
|
import type { NextApiRequest, NextApiResponse } from 'next'
|
|
|
|
type Data = {
|
|
name: string
|
|
}
|
|
|
|
export default function handler(req: NextApiRequest, res: NextApiResponse<Data>) {
|
|
res.status(200).json({ name: 'John Doe' })
|
|
}
|