@jayfong/x-utils 1.0.0-202408290944 → 1.0.0-202408290949

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.
@@ -57,7 +57,15 @@ class XHttpServer {
57
57
  }
58
58
  fastify[_method](
59
59
  `/${_name}`,
60
- (req, rep) => this.options.handlers[name](req.body, req, rep)
60
+ (req, rep) => this.options.handlers[name](
61
+ {
62
+ ...req.params,
63
+ ...req.query,
64
+ ...req.body
65
+ },
66
+ req,
67
+ rep
68
+ )
61
69
  );
62
70
  });
63
71
  await fastify.listen({
package/http_server.js CHANGED
@@ -24,7 +24,15 @@ class XHttpServer {
24
24
  }
25
25
  fastify[_method](
26
26
  `/${_name}`,
27
- (req, rep) => this.options.handlers[name](req.body, req, rep)
27
+ (req, rep) => this.options.handlers[name](
28
+ {
29
+ ...req.params,
30
+ ...req.query,
31
+ ...req.body
32
+ },
33
+ req,
34
+ rep
35
+ )
28
36
  );
29
37
  });
30
38
  await fastify.listen({
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@jayfong/x-utils",
3
3
  "description": "123456",
4
- "version": "1.0.0-202408290944",
4
+ "version": "1.0.0-202408290949",
5
5
  "type": "module",
6
6
  "dependencies": {
7
7
  "vtils": "^4.115.0",