We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a54ae61 commit db3b1fdCopy full SHA for db3b1fd
docs/3-web-servers/06-get-post/_samples/forum/main.mjs
@@ -8,10 +8,10 @@ const messages = [];
8
app.use(express.urlencoded({ extended: true }));
9
10
app.get("/", (request, response) => {
11
- const template = readFileSync("index.html", "utf-8");
+ const template = readFileSync("./index.html", "utf-8");
12
const html = template.replace(
13
"{messages}",
14
- messages.map((msg) => `<li>${msg}</li>`).join(""),
+ messages.map((message) => `<li>${message}</li>`).join(""),
15
);
16
response.send(html);
17
});
0 commit comments