waibu-mpa 2.24.0 → 2.24.1
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/index.js +4 -0
- package/package.json +1 -1
- package/wiki/CHANGES.md +4 -0
package/index.js
CHANGED
|
@@ -1010,6 +1010,10 @@ async function factory (pkgName) {
|
|
|
1010
1010
|
}
|
|
1011
1011
|
if (urlPrefix) m.url = `/${urlPrefix}/${m.url}`
|
|
1012
1012
|
m.url = trimEnd(m.url, '/')
|
|
1013
|
+
if (isArray(m.methods)) {
|
|
1014
|
+
m.method = [...m.methods]
|
|
1015
|
+
delete m.methods
|
|
1016
|
+
}
|
|
1013
1017
|
m.method = m.method ?? 'GET'
|
|
1014
1018
|
await mergeRouteHooks.call(me, m)
|
|
1015
1019
|
m.config = m.config ?? {}
|
package/package.json
CHANGED