Skip to content
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

Idea: Add Named Routes #4248

Closed
getspooky opened this issue Apr 24, 2020 · 1 comment
Closed

Idea: Add Named Routes #4248

getspooky opened this issue Apr 24, 2020 · 1 comment

Comments

@getspooky
Copy link
Contributor

Named routes allow the convenient generation of URLs or redirects for specific routes. You may specify a name for a route by chaining the name method onto the route definition:

app.get('/user/', function (req, res) {
  res.send('USER')
}).name('user')
@getspooky getspooky changed the title Idea: Add Route Name Prefixes Idea: Add Named Routes Apr 24, 2020
@dougwilson
Copy link
Contributor

I believe this is a duplicate of #2739

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants