Skip to content

Commit

Permalink
fix: allowedMethods() should not fail if more than one router is defi…
Browse files Browse the repository at this point in the history
…ned (#183)

Fixes #182
  • Loading branch information
lbesson-della authored and 3imed-jaberi committed Sep 17, 2024
1 parent 850aa38 commit af70276
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/router.js
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ class Router {
ctx.routerPath;
const matched = router.match(path, ctx.method);
if (ctx.matched) {
ctx.matched.push(matched.path);
ctx.matched.push.apply(ctx.matched, matched.path);
} else {
ctx.matched = matched.path;
}
Expand Down

0 comments on commit af70276

Please sign in to comment.