Created
November 9, 2021 12:15
-
-
Save tpjnorton/f4d0e18d77ef78f4280dd7abae783d75 to your computer and use it in GitHub Desktop.
Basic API Route for Next.js (From Docs)
This file contains hidden or 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
export default function handler(req, res) { | |
res.status(200).json({ name: 'John Doe' }) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment