@azteam/express 1.2.126 → 1.2.127
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/package.json +1 -1
- package/src/ApiServer.js +2 -2
package/package.json
CHANGED
package/src/ApiServer.js
CHANGED
|
@@ -245,15 +245,15 @@ class ApiServer {
|
|
|
245
245
|
router.path = `/${method.path}/${router.path}`;
|
|
246
246
|
router.path = controller.pathName ? `/${controller.pathName}${router.path}` : router.path;
|
|
247
247
|
router.path = controllerVersion.startsWith('v') ? `/${controllerVersion}${router.path}` : router.path;
|
|
248
|
+
router.path = path.normalize(router.path);
|
|
248
249
|
|
|
249
250
|
msg.push({
|
|
250
251
|
controller: controllerName,
|
|
251
252
|
version: controllerVersion,
|
|
252
253
|
type,
|
|
253
254
|
method: name,
|
|
254
|
-
path:
|
|
255
|
+
path: router.path
|
|
255
256
|
});
|
|
256
|
-
|
|
257
257
|
app[type](router.path, ...router.method);
|
|
258
258
|
});
|
|
259
259
|
});
|