api routes changed

This commit is contained in:
Sridhar260802 2025-05-17 13:55:27 +05:30
parent 8720dc73fd
commit 17ba5622d6
4 changed files with 7 additions and 7 deletions

View File

@ -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" },

View File

@ -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" } }
);

View File

@ -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);

View File

@ -15,7 +15,7 @@ export default defineConfig({
port: 5174,
proxy: {
'/api': {
target: 'http://localhost:5002',
target: 'https://api.vvet.in',
changeOrigin: true,
secure: false,
},