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

ctx._matchedRoute undefined #53

Closed
willin opened this issue Jun 29, 2017 · 1 comment
Closed

ctx._matchedRoute undefined #53

willin opened this issue Jun 29, 2017 · 1 comment

Comments

@willin
Copy link

willin commented Jun 29, 2017

When a route is matched, its path is available at ctx._matchedRoute and if named, the name is available at ctx._matchedRouteName

https://github.com/koajs/joi-router/blob/master/package.json#L44

@aheckmann

@aheckmann
Copy link
Member

Those properties are not supported by this project. They are internal features of koa-router (and should probably be exposed on ctx.state). That said, the next release of this project includes an updated koa-router.

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

2 participants