koa-router
Advanced tools
Comparing version 3.1.4 to 3.2.0
@@ -82,2 +82,4 @@ /** | ||
if (method === this.method) { | ||
this.route = route; | ||
// Merge the matching routes params into context params | ||
@@ -84,0 +86,0 @@ merge(this.params, params); |
@@ -9,3 +9,3 @@ { | ||
"author": "Alex Mingoia <talk@alexmingoia.com>", | ||
"version": "3.1.4", | ||
"version": "3.2.0", | ||
"keywords": [ | ||
@@ -12,0 +12,0 @@ "koa", |
@@ -51,2 +51,8 @@ # Router middleware for [koa](https://github.com/koajs/koa) | ||
```javascript | ||
var koa = require('koa'); | ||
, mount = require('koa-mount') | ||
, Router = require('koa-router'); | ||
var app = koa(); | ||
var APIv1 = new Router(); | ||
@@ -63,4 +69,5 @@ var APIv2 = new Router(); | ||
app.use(mount('/v1', APIv1.middleware())); | ||
app.use(mount('/v2', APIv2.middleware())); | ||
app | ||
.use(mount('/v1', APIv1.middleware())) | ||
.use(mount('/v2', APIv2.middleware())); | ||
``` | ||
@@ -67,0 +74,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
31523
842
262