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

.param not firing when matching on a nested middleware #170

Closed
santialbo opened this issue Sep 8, 2015 · 0 comments
Closed

.param not firing when matching on a nested middleware #170

santialbo opened this issue Sep 8, 2015 · 0 comments

Comments

@santialbo
Copy link

The following could be intentional behaviour but I'd like to confirm. Here's my usecase:

let router = new Router();
router
  .param('id', function*(id, next) {
    //do something
  })
  // some routes
  .use('/:id/children', children.routes())

Currently the param function doesn't fire when some url in the children router is matched. Is this a bug?

ruiquelhas pushed a commit to seegno-forks/koa-router that referenced this issue Oct 16, 2015
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