refactor phase 3a api admin auth documents email targeted actions imports

This commit is contained in:
2026-03-12 09:58:39 +00:00
parent cf99d8e466
commit 7bd5c7d833
9 changed files with 65 additions and 63 deletions
+6 -5
View File
@@ -110,7 +110,8 @@
// }
import axios from "axios";
import { getToken, consoleLogger } from "../../../../actions";
import { getToken } from "../../../../actions/core/token";
import { consoleLogger } from "../../../../actions/core/logger";
const WEBAPI_URL =
process.env.RELAY_ROOT ||
@@ -149,9 +150,9 @@ const ApiProxy = async (req, res) => {
"Prefer":
'odata.include-annotations="*",return=representation',
"Content-Type": "application/json",
"Authorization": "Bearer " + token.access_token,
"Authorization": "Bearer " + token.access_token
},
responseType: "stream",
responseType: "stream"
});
};
@@ -196,8 +197,8 @@ const ApiProxy = async (req, res) => {
export const config = {
api: {
responseLimit: false,
},
responseLimit: false
}
};
export default ApiProxy;