waibu-rest-api 2.11.0 → 2.11.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 +0 -1
- package/lib/serve-route.js +1 -1
- package/package.json +1 -1
- package/wiki/CHANGES.md +4 -0
package/index.js
CHANGED
|
@@ -106,7 +106,6 @@ async function factory (pkgName) {
|
|
|
106
106
|
|
|
107
107
|
transformResult = ({ data, req, reply, options = {} }) => {
|
|
108
108
|
const reformat = ({ data, req, reply, options = {} }) => {
|
|
109
|
-
// console.log(data)
|
|
110
109
|
const { forOwn, get } = this.app.lib._
|
|
111
110
|
const newData = {}
|
|
112
111
|
forOwn(data, (v, k) => {
|
package/lib/serve-route.js
CHANGED
|
@@ -11,7 +11,7 @@ async function serveRoute ({ mod, ns, parent }) {
|
|
|
11
11
|
mod.config.webApp = parent ?? ns
|
|
12
12
|
mod.config.ns = ns
|
|
13
13
|
mod.config.subNs = 'restapi'
|
|
14
|
-
mod.config.
|
|
14
|
+
mod.config.xSite = mod.xSite
|
|
15
15
|
mod.config.title = mod.title
|
|
16
16
|
delete mod.title
|
|
17
17
|
if (mod.method === 'PUT' && cfgWdb.dbModel.patchEnabled) mod.method = [mod.method, 'PATCH']
|
package/package.json
CHANGED