Skip to content

Commit 76020dd

Browse files
fix: allowedMethods() should not fail if more than one router is defined (#183)
Fixes #182
1 parent e19c62b commit 76020dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: lib/router.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ class Router {
228228
ctx.routerPath;
229229
const matched = router.match(path, ctx.method);
230230
if (ctx.matched) {
231-
ctx.matched.push(matched.path);
231+
ctx.matched.push.apply(ctx.matched, matched.path);
232232
} else {
233233
ctx.matched = matched.path;
234234
}

0 commit comments

Comments
 (0)