api route changed

This commit is contained in:
Sridhar260802 2025-05-17 13:53:36 +05:30
parent f6ff68a8be
commit 8b4d4866bc
2 changed files with 3 additions and 3 deletions

4
app.js
View File

@ -55,7 +55,7 @@
// // Send POST request to Python OCR server
// const ocrResponse = await axios.post(
// "http://localhost:6001/extract-text",
// "https://api.vvet.in/extract-text",
// formData,
// {
// headers: formData.getHeaders(),
@ -183,7 +183,7 @@ app.post("/api/verify-pan", upload.single("panImage"), async (req, res) => {
// Send POST request to Python OCR server
const ocrResponse = await axios.post(
"http://localhost:6001/extract-text",
"https://api.vvet.in/extract-text",
formData,
{
headers: formData.getHeaders(),

View File

@ -20,7 +20,7 @@ router.post("/extract-document", upload.single("document"), async (req, res) =>
const formData = new FormData();
formData.append("document", fs.createReadStream(file.path));
const response = await axios.post("http://localhost:6001/extract-text", formData, {
const response = await axios.post("https://api.vvet.in/extract-text", formData, {
headers: formData.getHeaders(),
});