@steedos/service-rest 2.7.1-beta.16 → 2.7.1-beta.17

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 +4 -4
  2. package/package.service.js +10 -5
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@steedos/service-rest",
3
- "version": "2.7.1-beta.16",
3
+ "version": "2.7.1-beta.17",
4
4
  "main": "package.service.js",
5
5
  "private": false,
6
6
  "publishConfig": {
@@ -16,9 +16,9 @@
16
16
  "repository": {},
17
17
  "license": "MIT",
18
18
  "dependencies": {
19
- "@steedos/objectql": "2.7.1-beta.16",
20
- "@steedos/service-object-mixin": "2.7.1-beta.16",
19
+ "@steedos/objectql": "2.7.1-beta.17",
20
+ "@steedos/service-object-mixin": "2.7.1-beta.17",
21
21
  "lodash": "^4.17.21"
22
22
  },
23
- "gitHead": "ab56517f48e72f56687af564a3c93f4f29d02e1f"
23
+ "gitHead": "a47b445992e1ced339572a86f50ed1c75ed12335"
24
24
  }
@@ -2,7 +2,7 @@
2
2
  * @Author: sunhaolin@hotoa.com
3
3
  * @Date: 2023-03-23 15:12:14
4
4
  * @LastEditors: 孙浩林 sunhaolin@steedos.com
5
- * @LastEditTime: 2024-05-15 13:46:12
5
+ * @LastEditTime: 2024-05-21 13:22:25
6
6
  * @Description:
7
7
  */
8
8
  "use strict";
@@ -752,10 +752,15 @@ module.exports = {
752
752
  * }
753
753
  */
754
754
  functions: {
755
- rest: {
756
- method: "POST",
757
- path: "/:objectName/functions/:functionApiName",
758
- },
755
+ rest: [
756
+ {
757
+ method: "GET",
758
+ path: "/:objectName/functions/:functionApiName",
759
+ }, {
760
+ method: "POST",
761
+ path: "/:objectName/functions/:functionApiName",
762
+ }
763
+ ],
759
764
  async handler(ctx) {
760
765
  const userSession = ctx.meta.user;
761
766
  const { objectName, functionApiName } = ctx.params;