We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ae9987b commit c0e80bbCopy full SHA for c0e80bb
src/templates/core/axios/sendRequest.hbs
@@ -8,9 +8,10 @@ async function sendRequest(
8
openApiConfig: OpenAPIConfig
9
): Promise<AxiosResponse<any>> {
10
const source = axios.CancelToken.source();
11
+ const newUrl = openApiConfig.EDGE ? url.replace("{edge}", openApiConfig.EDGE) : url;
12
13
const config: AxiosRequestConfig = {
- url: url.replace("{edge}", openApiConfig.EDGE),
14
+ url: newUrl,
15
headers,
16
data: body || formData,
17
method: options.method,
0 commit comments