diff --git a/src/Components/FundDrive.jsx b/src/Components/FundDrive.jsx index 177db4d..071fa94 100644 --- a/src/Components/FundDrive.jsx +++ b/src/Components/FundDrive.jsx @@ -110,7 +110,7 @@ const FundDrive = () => { formDataForPan.append("panImage", panImage); const response = await axios.post( - "http://localhost:5002/api/verify-pan", + "https://api.vvet.in/api/verify-pan", formDataForPan, { headers: { "Content-Type": "multipart/form-data" }, @@ -147,7 +147,7 @@ const FundDrive = () => { // try { // await submitVvvetForm(formData); - // await axios.post("http://localhost:5002/api/users/add", formData); + // await axios.post("https://api.vvet.in/api/users/add", formData); // // Ensure this sends the form data to your backend // setStep(5); // Show the thank-you screen // } catch (error) { @@ -193,7 +193,7 @@ const FundDrive = () => { } const response = await axios.post( - "http://localhost:5002/api/fundraising/submit", + "https://api.vvet.in/api/fundraising/submit", formSubmissionData, { headers: { "Content-Type": "multipart/form-data" }, diff --git a/src/Components/Supporter.jsx b/src/Components/Supporter.jsx index e22314b..23ddfa8 100644 --- a/src/Components/Supporter.jsx +++ b/src/Components/Supporter.jsx @@ -83,7 +83,7 @@ const FundDrive = () => { // setIsLoading(true); const response = await axios.post( - "http://localhost:5002/api/verify-pan", + "https://api.vvet.in/api/verify-pan", formDataForPan, { headers: { @@ -161,7 +161,7 @@ const FundDrive = () => { } const response = await axios.post( - "http://localhost:5002/api/donor/submit", + "https://api.vvet.in/api/donor/submit", formSubmissionData, { headers: { "Content-Type": "multipart/form-data" } } ); diff --git a/src/vvvetApi.js b/src/vvvetApi.js index f7dc02e..616452a 100644 --- a/src/vvvetApi.js +++ b/src/vvvetApi.js @@ -3,7 +3,7 @@ import axios from 'axios'; export const submitVvvetForm = async (formData) => { try { - const response = await axios.post('http://localhost:5002/api/users/add', formData); + const response = await axios.post('https://api.vvet.in/api/users/add', formData); return response.data; } catch (error) { console.error('Error submitting form:', error); diff --git a/vite.config.js b/vite.config.js index 91d1d0d..9fd3757 100644 --- a/vite.config.js +++ b/vite.config.js @@ -15,7 +15,7 @@ export default defineConfig({ port: 5174, proxy: { '/api': { - target: 'http://localhost:5002', + target: 'https://api.vvet.in', changeOrigin: true, secure: false, },