seeh
1
Tell us what’s happening:
Describe your issue in detail here.
i tried:
app.get( '/:word',
app.get( '/:word/echo',
app.get( '/word:echo',
at the moment i try:
app.get(
'/echo:word',
(req, res) => {
// res.send({ "echo": req.params.word }); // idk this is not used anymore
res.json({ "echo": req.params.word });
}
);
always i get this errors:
Test 1 : Your echo server should repeat words correctly
Test 2 : Your echo server should repeat words correctly
Your project link(s)
solution: boilerplate-express - Replit
** was reading:
Your browser information:
User Agent is: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/110.0
Challenge: Basic Node and Express - Get Route Parameter Input from the Client
Link to the challenge:
Your route is incorrect.
The instructions say:
Build an echo server, mounted at the route GET /:word/echo
.
1 Like
Like @igorgetmeabrain said.
You have created a GET /echo/:word
route
1 Like