summaryrefslogtreecommitdiffstats
path: root/pages/api/hello.ts
blob: 87c740d56b9eb6ad653b7b03ec17780363a86172 (plain)
1
2
3
4
5
6
7
8
// Next.js API route support: https://nextjs.org/docs/api-routes/introduction

import type { NextApiRequest, NextApiResponse } from 'next';

// eslint-disable-next-line
export default (req: NextApiRequest, res: NextApiResponse) => {
  res.status(200).json({ name: 'John Doe' });
};