refactor phase 3a api-endpoint chunk 5a targeted actions imports
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user