Skip to content

Commit aa14f96

Browse files
committed
typo
アロー関数式 => 関数式に修正
1 parent ae6e2cf commit aa14f96

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/api-routes/introduction.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ API ルートは Next.js で**API**を構築する方法を提供しています
2222
例えば、以下の API ルート `pages/api/user.js``json` レスポンスを `200` ステータスコードとともに返します:
2323

2424
```js
25-
export default function handler(req, res) => {
25+
export default function handler(req, res) {
2626
res.status(200).json({ name: 'John Doe' })
2727
};
2828
```
@@ -35,7 +35,7 @@ API ルートを使用するためには、関数(**リクエストハンドラ*
3535
API ルートで異なる HTTP メソッドを処理するには、次のようにリクエストハンドラの `req.method` を使うことができます:
3636

3737
```js
38-
export default function handler(req, res) => {
38+
export default function handler(req, res) {
3939
if (req.method === 'POST') {
4040
// POSTリクエストを処理します
4141
} else {

0 commit comments

Comments
 (0)