Merge pull request #120 from kjannette/forward

more
This commit is contained in:
S Jannette
2024-03-05 15:29:09 -06:00
committed by GitHub

View File

@@ -103,6 +103,7 @@ const UploadModal = (props) => {
try { try {
if (radioValue === "complaint") { if (radioValue === "complaint") {
if (clientPositiion === "Plaintiff") { if (clientPositiion === "Plaintiff") {
console.log("sending POST to: ", `${apiUrl}/v1/gen-disc-request-pl`);
const response = await fetch(`${apiUrl}/v1/gen-disc-request-pl`, { const response = await fetch(`${apiUrl}/v1/gen-disc-request-pl`, {
method: "POST", method: "POST",
body: file, body: file,
@@ -110,6 +111,7 @@ const UploadModal = (props) => {
const res = response; const res = response;
return res; return res;
} else { } else {
console.log("sending POST to:", `${apiUrl}/v1/gen-disc-request-df`);
const response = await fetch(`${apiUrl}/v1/gen-disc-request-df`, { const response = await fetch(`${apiUrl}/v1/gen-disc-request-df`, {
method: "POST", method: "POST",
body: file, body: file,