This commit is contained in:
Steve Faulkner
2020-07-23 21:53:46 -05:00
parent 8aeff8fb45
commit 6870bd9b54
20 changed files with 105 additions and 159 deletions

View File

@@ -207,7 +207,7 @@ async function main() {
${bodyParam(bodyParameter, "Types")}
) : Promise<${responseType(operation, "Types")}> {
const path = \`${path.replace(/{/g, "${")}\`
return window.fetch(this.baseUrl + path, { method: "${method}", ${
return window.fetch(path, { method: "${method}", ${
bodyParameter ? "body: JSON.stringify(body)" : ""
} }).then((response) => response.json())
}