api route changed
This commit is contained in:
parent
f6ff68a8be
commit
8b4d4866bc
4
app.js
4
app.js
|
|
@ -55,7 +55,7 @@
|
||||||
|
|
||||||
// // Send POST request to Python OCR server
|
// // Send POST request to Python OCR server
|
||||||
// const ocrResponse = await axios.post(
|
// const ocrResponse = await axios.post(
|
||||||
// "http://localhost:6001/extract-text",
|
// "https://api.vvet.in/extract-text",
|
||||||
// formData,
|
// formData,
|
||||||
// {
|
// {
|
||||||
// headers: formData.getHeaders(),
|
// 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
|
// Send POST request to Python OCR server
|
||||||
const ocrResponse = await axios.post(
|
const ocrResponse = await axios.post(
|
||||||
"http://localhost:6001/extract-text",
|
"https://api.vvet.in/extract-text",
|
||||||
formData,
|
formData,
|
||||||
{
|
{
|
||||||
headers: formData.getHeaders(),
|
headers: formData.getHeaders(),
|
||||||
|
|
|
||||||
|
|
@ -20,7 +20,7 @@ router.post("/extract-document", upload.single("document"), async (req, res) =>
|
||||||
const formData = new FormData();
|
const formData = new FormData();
|
||||||
formData.append("document", fs.createReadStream(file.path));
|
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(),
|
headers: formData.getHeaders(),
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue