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

Using the Router module #9

Open
dulichan opened this issue Apr 15, 2014 · 0 comments
Open

Using the Router module #9

dulichan opened this issue Apr 15, 2014 · 0 comments

Comments

@dulichan
Copy link

One of the confusing points of using the Router module is using the app variable inside of it. Wouldn't it be nicer to have it like below -

var router=require('router');
router.get('/hello',function(){
    print('Hello World!');    
});

Also the documentation is not clear on the part where we plug in the router to the pipe (Since we can't plug in router.app).

  var router=require('router');
  pipe.plug(router);
@dulichan dulichan changed the title Using the Router module Using the Router module [Documentation] Apr 15, 2014
@dulichan dulichan changed the title Using the Router module [Documentation] Using the Router module Apr 15, 2014
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

No branches or pull requests

1 participant