refactor phase 3a api admin auth documents email targeted actions imports
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user