Skip to content

Commit db3b1fd

Browse files
committed
レビュー反映
index.html -> ./index.html msg -> message
1 parent a54ae61 commit db3b1fd

File tree

1 file changed

+2
-2
lines changed
  • docs/3-web-servers/06-get-post/_samples/forum

1 file changed

+2
-2
lines changed

docs/3-web-servers/06-get-post/_samples/forum/main.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ const messages = [];
88
app.use(express.urlencoded({ extended: true }));
99

1010
app.get("/", (request, response) => {
11-
const template = readFileSync("index.html", "utf-8");
11+
const template = readFileSync("./index.html", "utf-8");
1212
const html = template.replace(
1313
"{messages}",
14-
messages.map((msg) => `<li>${msg}</li>`).join(""),
14+
messages.map((message) => `<li>${message}</li>`).join(""),
1515
);
1616
response.send(html);
1717
});

0 commit comments

Comments
 (0)