Commit b533f2af authored by Lee Robinson's avatar Lee Robinson Committed by JJ Kasper

Fix typo in API Routes documentation. (#10054)

Co-authored-by: 's avatarJJ Kasper <jj@jjsweb.site>
parent 72a898a7
......@@ -25,7 +25,7 @@ For example, the following API route `pages/api/user.js` handles a simple `json`
export default (req, res) => {
res.statusCode = 200
res.setHeader('Content-Type', 'application/json')
res.end(JSON.stringify({ name: 'Jhon Doe' }))
res.end(JSON.stringify({ name: 'John Doe' }))
}
```
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment