refactor(actions): migrate endpoint and file proxies to focused imports
This commit is contained in:
@@ -1,12 +1,10 @@
|
||||
import {
|
||||
hashAPIPath,
|
||||
getToken,
|
||||
azureHeaders,
|
||||
consoleLogger,
|
||||
} from "../../../actions";
|
||||
import { hashAPIPath } from "../../../actions/core/hash";
|
||||
import { getToken } from "../../../actions/core/token";
|
||||
import { azureHeaders } from "../../../actions/core/headers";
|
||||
import { consoleLogger } from "../../../actions/core/logger";
|
||||
import {
|
||||
getBlobs,
|
||||
createCaseCompleteMessage,
|
||||
createCaseCompleteMessage
|
||||
} from "../../../actions/azurestorage";
|
||||
import axios from "axios";
|
||||
|
||||
@@ -35,7 +33,7 @@ ApiProxy.get(async (req, res) => {
|
||||
|
||||
var config = {
|
||||
method: "get",
|
||||
url: WEBAPI_URL + queryUrl + hashAPIPath(queryUrl),
|
||||
url: WEBAPI_URL + queryUrl + hashAPIPath(queryUrl)
|
||||
};
|
||||
|
||||
return axios(config)
|
||||
@@ -53,8 +51,8 @@ ApiProxy.get(async (req, res) => {
|
||||
|
||||
export const config = {
|
||||
api: {
|
||||
bodyParser: false,
|
||||
},
|
||||
bodyParser: false
|
||||
}
|
||||
};
|
||||
|
||||
export default ApiProxy;
|
||||
|
||||
Reference in New Issue
Block a user