Skip to content

Routes: wildcard route needs a parameter to work with but is missing in the example in the lesson #29638

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
3 tasks done
HemantDahiyaCodes opened this issue Apr 21, 2025 · 1 comment · May be fixed by #29592
Open
3 tasks done

Comments

@HemantDahiyaCodes
Copy link

Checks

Describe your suggestion

in the example snippet of "Order matters"

app.get("*", (req, res) => {
  res.send("* is a great way to catch all otherwise unmatched paths, e.g. for custom 404 error handling.");
});

the wildcard now needs a name parameter to work with. For example:

app.get("*some-name", (req, res) => { res.send("This should match all routes!"); })
the above snippet will work. Please update if it is an actual error.

Path

Node / JS

Lesson Url

https://www.theodinproject.com/lessons/nodejs-routes

(Optional) Discord Name

hemantxLynn

(Optional) Additional Comments

No response

@MaoShizhong
Copy link
Contributor

Will be addressed when #29592 is merged.

@MaoShizhong MaoShizhong linked a pull request Apr 29, 2025 that will close this issue
7 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants