From 2d03af3be09716381ecd6030823d7f12967739c4 Mon Sep 17 00:00:00 2001 From: WATAHIKI YUTO Date: Sun, 7 Dec 2025 10:49:40 +0900 Subject: [PATCH] =?UTF-8?q?=E3=83=81=E3=83=A3=E3=83=83=E3=83=88=E3=82=A2?= =?UTF-8?q?=E3=83=97=E3=83=AA=E3=81=A8=E6=8E=B2=E7=A4=BA=E6=9D=BF=E3=81=AE?= =?UTF-8?q?=E3=82=B9=E3=83=86=E3=83=BC=E3=82=BF=E3=82=B9=E3=82=B3=E3=83=BC?= =?UTF-8?q?=E3=83=89=E3=82=92=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../07-fetch-api-post/_samples/chat-app/main.mjs | 2 +- docs/3-web-servers/07-fetch-api-post/index.mdx | 6 +++--- docs/3-web-servers/08-database/_samples/forum/main.mjs | 2 +- docs/3-web-servers/08-database/index.mdx | 2 +- src/components/Term/definitions.js | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/docs/3-web-servers/07-fetch-api-post/_samples/chat-app/main.mjs b/docs/3-web-servers/07-fetch-api-post/_samples/chat-app/main.mjs index 5d407348..9b5e2aad 100644 --- a/docs/3-web-servers/07-fetch-api-post/_samples/chat-app/main.mjs +++ b/docs/3-web-servers/07-fetch-api-post/_samples/chat-app/main.mjs @@ -11,7 +11,7 @@ app.get("/messages", (request, response) => { app.post("/send", (request, response) => { messages.push(request.body.message); - response.send(); + response.sendStatus(201); // Created(新しいメッセージを作成) }); app.listen(3000); diff --git a/docs/3-web-servers/07-fetch-api-post/index.mdx b/docs/3-web-servers/07-fetch-api-post/index.mdx index 0f51eac5..900b45f8 100644 --- a/docs/3-web-servers/07-fetch-api-post/index.mdx +++ b/docs/3-web-servers/07-fetch-api-post/index.mdx @@ -283,7 +283,7 @@ document.getElementById("search-button").onclick = async () => {