This commit is contained in:
Kenneth Jannette
2024-03-06 00:24:03 -06:00
parent f53bdea108
commit d12c12a501

View File

@@ -239,16 +239,19 @@ const RequestEditPage = () => {
const res = await postEditedResponses(); const res = await postEditedResponses();
try { try {
const response = await fetch(`${apiUrl}/v1/generate-request-docx/`, { const response = await fetch(
method: "POST", `${apiUrl}/v1/generate-request-docx/${docId}`,
headers: { {
Accept: "application/json", method: "POST",
"Content-Type": "application/json", headers: {
}, Accept: "application/json",
body: JSON.stringify({ "Content-Type": "application/json",
docId: docId, },
}), body: JSON.stringify({
}); docId: docId,
}),
}
);
return response; return response;
} catch (error) { } catch (error) {
console.error("Error sending requests to the server:", error); console.error("Error sending requests to the server:", error);