@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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/ApiServer.js +2 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@azteam/express",
3
- "version": "1.2.126",
3
+ "version": "1.2.127",
4
4
  "description": "",
5
5
  "main": "src/index.js",
6
6
  "repository": {
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: path.resolve(router.path)
255
+ path: router.path
255
256
  });
256
-
257
257
  app[type](router.path, ...router.method);
258
258
  });
259
259
  });