c2-http 1.0.131 → 1.0.132

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.
@@ -44,7 +44,7 @@ class Controller {
44
44
  middlewaresAux = [...middlewaresAux, ...middlewares];
45
45
  }
46
46
  // Registra rota normalmente
47
- this.router[method](uri, [...middlewaresAux, handlerFn]);
47
+ this.router[method](uri, ...middlewaresAux, handlerFn);
48
48
  if (uri.includes(":")) {
49
49
  // Ex: /users/:id -> regex /users/[^/]+
50
50
  const regex = new RegExp(`^${uri.replace(/:[^/]+/g, "[^/]+")}$`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "c2-http",
3
- "version": "1.0.131",
3
+ "version": "1.0.132",
4
4
  "description": "Biblioteca Typescript para API NodeJS",
5
5
  "repository": "https://cabralsilva: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@github.com/cabralsilva/c2-http.git",
6
6
  "author": "Daniel Cabral <cabralconsultoriaemsoftware@gmail.com>",