Skip to content

Commit 5371d9f

Browse files
committed
9.1 solution echo word params
1 parent 404a815 commit 5371d9f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/server.js

+5
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,11 @@ app.get(
3636
}
3737
);
3838

39+
app.get("/echo/:word", (req, res) => {
40+
const { word } = req.params;
41+
res.json({ echo: word });
42+
});
43+
3944
const server = app.listen(process.env.PORT || 3000);
4045

4146
// -- DO NOT EDIT BELOW THIS LINE

0 commit comments

Comments
 (0)