waibu-rest-api 2.16.0 → 2.16.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 CHANGED
@@ -59,7 +59,7 @@ async function factory (pkgName) {
59
59
  routePath = (name, { defFormat = '.json', uriEncoded = true } = {}) => {
60
60
  const { fullPath, ns } = this.app.bajo.breakNsPath(name)
61
61
  const { getPluginPrefix, cleanPath } = this.app.waibu
62
- const prefix = getPluginPrefix(this.app[ns], 'waibuRestApi')
62
+ const prefix = getPluginPrefix(ns, 'waibuRestApi')
63
63
  const format = defFormat === false ? '' : (this.config.format.asExt ? defFormat : '')
64
64
  let path = `/${this.config.waibu.prefix}/${prefix}${fullPath}${format}`
65
65
  if (uriEncoded) path = path.split('/').map(p => encodeURI(p)).join('/')
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "waibu-rest-api",
3
- "version": "2.16.0",
3
+ "version": "2.16.1",
4
4
  "description": "REST API for Waibu",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/wiki/CHANGES.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changes
2
2
 
3
+ ## 2026-11-12
4
+
5
+ - [2.16.1] Bug fix in `routePath()`
6
+
3
7
  ## 2026-11-10
4
8
 
5
9
  - [2.16.0] Remove all module context and start using one `webAppCtx`