c2-http 1.0.84 → 1.0.86

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.
@@ -18,6 +18,7 @@ class CrudController extends Controller_1.Controller {
18
18
  this.createRunner = this.createRunner.bind(this);
19
19
  this.updateRunner = this.updateRunner.bind(this);
20
20
  this.deleteRunner = this.deleteRunner.bind(this);
21
+ this.deepSearchRunner = this.deepSearchRunner.bind(this);
21
22
  if (options.byPass === true || options.middlewareCheckAuthorization === undefined) {
22
23
  this.routesControlled.push(new ControllerRoute_1.ControllerRoute({
23
24
  router: this.routers,
@@ -31,6 +32,12 @@ class CrudController extends Controller_1.Controller {
31
32
  uri: `${this.options.uri}`,
32
33
  controllerFn: this.searchRunner
33
34
  }));
35
+ this.routesControlled.push(new ControllerRoute_1.ControllerRoute({
36
+ router: this.routers,
37
+ method: "patch",
38
+ uri: `${this.options.uri}`,
39
+ controllerFn: this.deepSearchRunner
40
+ }));
34
41
  this.routesControlled.push(new ControllerRoute_1.ControllerRoute({
35
42
  router: this.routers,
36
43
  method: "post",
@@ -65,6 +72,13 @@ class CrudController extends Controller_1.Controller {
65
72
  middlewareCheckAuthorization: new ControllerRoleMiddleware_1.ControllerRoleMiddleware([`${this.options.prefixRole}:read`], options.middlewareCheckAuthorization),
66
73
  controllerFn: this.searchRunner
67
74
  }));
75
+ this.routesControlled.push(new ControllerRoute_1.ControllerRoute({
76
+ router: this.routers,
77
+ method: "patch",
78
+ uri: `${this.options.uri}`,
79
+ middlewareCheckAuthorization: new ControllerRoleMiddleware_1.ControllerRoleMiddleware([`${this.options.prefixRole}:read`], options.middlewareCheckAuthorization),
80
+ controllerFn: this.deepSearchRunner
81
+ }));
68
82
  this.routesControlled.push(new ControllerRoute_1.ControllerRoute({
69
83
  router: this.routers,
70
84
  method: "post",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "c2-http",
3
- "version": "1.0.84",
3
+ "version": "1.0.86",
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>",