@pronto-tools-and-more/api 12.35.1 → 12.37.0
Sign up to get free protection for your applications and to get access to all the features.
package/package.json
CHANGED
@@ -31,11 +31,16 @@ export const handleApiAppSettings = async ({ appId, apiUrl, req }) => {
|
|
31
31
|
return rest;
|
32
32
|
});
|
33
33
|
|
34
|
+
const object = Object.create(null);
|
35
|
+
for (const node of realData) {
|
36
|
+
object[node.key] = node.value;
|
37
|
+
}
|
38
|
+
|
34
39
|
return {
|
35
40
|
headers: {
|
36
41
|
"content-type": "application/json",
|
37
42
|
},
|
38
43
|
status: 200,
|
39
|
-
body: JSON.stringify(
|
44
|
+
body: JSON.stringify(object, null, 2),
|
40
45
|
};
|
41
46
|
};
|