Created
August 26, 2022 18:14
-
-
Save KolbySisk/693ebde4f13cd0c0febf026e1a432b21 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import type { NextApiRequest, NextApiResponse } from 'next'; | |
type User = { userId: string }; | |
const handler = (req: NextApiRequest, res: NextApiResponse<User>) => { | |
return res.status(200).json({ userId: 'abc123' }); | |
}; | |
export default handler; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment