refactor(actions): migrate endpoint and file proxies to focused imports

This commit is contained in:
2026-03-12 17:39:50 +00:00
parent f0202bbd02
commit fa985351ff
8 changed files with 42 additions and 106 deletions
@@ -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;