koajs / joi-router

Configurable, input and output validated routing for koa
MIT License
450 stars 96 forks source link

ctx._matchedRoute undefined #53

Closed willin closed 6 years ago

willin commented 7 years ago

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 commented 6 years ago

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.