You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
Checks
Describe your suggestion
in the example snippet of "Order matters"
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
The text was updated successfully, but these errors were encountered: