提交 b533f2af 编写于 作者: L Lee Robinson 提交者: JJ Kasper

Fix typo in API Routes documentation. (#10054)

Co-authored-by: NJJ Kasper <jj@jjsweb.site>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册