refactor phase 3a api-endpoint chunk 5a targeted actions imports

This commit is contained in:
2026-03-12 11:31:38 +00:00
parent 86f41f81e9
commit 2a3c7eac34
6 changed files with 44 additions and 33 deletions
+5 -4
View File
@@ -13,7 +13,8 @@
import axios from "axios";
import CryptoJS from "crypto-js";
import _ from "lodash";
import { consoleLogger, getToken } from "../../../actions";
import { consoleLogger } from "../../../actions/core/logger";
import { getToken } from "../../../actions/core/token";
const WORDKEY = process.env.HASHKEY;
@@ -39,7 +40,7 @@ export default async function ApiProxy(req, res) {
var token = await getToken();
var data = JSON.stringify({
"servicestage": 0,
"servicestage": 0
});
//console.log(data, WEBAPI_URL + queryUrl);
@@ -53,9 +54,9 @@ export default async function ApiProxy(req, res) {
"Accept": "application/json",
"Prefer": 'odata.include-annotations="*",return=representation',
"Authorization": "Bearer " + token.access_token,
"Content-Type": "application/json",
"Content-Type": "application/json"
},
data: data,
data: data
};
var apiResponse = _.isEmpty(req.query)