silgi 0.41.15 → 0.41.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli/index.mjs +1 -1
- package/dist/core/index.mjs +1 -1
- package/package.json +1 -1
package/dist/cli/index.mjs
CHANGED
package/dist/core/index.mjs
CHANGED
|
@@ -967,7 +967,7 @@ async function middleware(event, url) {
|
|
|
967
967
|
}
|
|
968
968
|
const _mRouter = silgiContext._middlewareRouter;
|
|
969
969
|
if (_mRouter) {
|
|
970
|
-
const matches = findAllRoutes(_mRouter, event.req.method, pathname);
|
|
970
|
+
const matches = findAllRoutes(_mRouter, url?.method || event.req.method, pathname);
|
|
971
971
|
if (matches.length > 0) {
|
|
972
972
|
_chain = _chain || Promise.resolve();
|
|
973
973
|
for (const match of matches) {
|