@x-9lab/xlab 1.4.0 → 1.4.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/dist/router.js +4 -1
- package/package.json +1 -1
package/dist/router.js
CHANGED
|
@@ -117,7 +117,10 @@ function _interopRequireDefault(obj) {
|
|
|
117
117
|
}
|
|
118
118
|
var dirMws = [];
|
|
119
119
|
var prevPart = "";
|
|
120
|
-
for(let i =
|
|
120
|
+
for(let i = 0; i < apiPart.length; i++){
|
|
121
|
+
if (!apiPart[i] || apiPart[i] === "api") {
|
|
122
|
+
continue;
|
|
123
|
+
}
|
|
121
124
|
const part = `${prevPart}${_path.default.posix.sep}${apiPart[i]}`;
|
|
122
125
|
if (middlewares[part]) {
|
|
123
126
|
dirMws = dirMws.concat(middlewares[part]);
|