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

Additional named router and URL generator #2838

Closed
devntd opened this issue Jan 5, 2016 · 2 comments
Closed

Additional named router and URL generator #2838

devntd opened this issue Jan 5, 2016 · 2 comments

Comments

@devntd
Copy link

devntd commented Jan 5, 2016

Hi guys,
What I mean here is the integration of the route into the router name. It will help the code is in sync and easy to maintain.
Example: I just declare

router.get('/user', function(), {name: "user"})

At the template engine to use one helper, such as:

url('user') 
// print: '/user'

Then if you want to modify simple path we just fix one place was finished.
Thanks
--ntd--

@tunniclm
Copy link
Contributor

tunniclm commented Jan 7, 2016

There is some discussion similar to this in #2501

@sjanuary
Copy link
Contributor

sjanuary commented Mar 7, 2016

I think this is covered by #2739 and pillarjs/router#36

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

4 participants