@steedos/service-rest 2.7.1-beta.15 → 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.
- package/package.json +4 -4
- 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.
|
|
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.
|
|
20
|
-
"@steedos/service-object-mixin": "2.7.1-beta.
|
|
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": "
|
|
23
|
+
"gitHead": "a47b445992e1ced339572a86f50ed1c75ed12335"
|
|
24
24
|
}
|
package/package.service.js
CHANGED
|
@@ -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-
|
|
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
|
-
|
|
757
|
-
|
|
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;
|