api routes changed
This commit is contained in:
parent
8720dc73fd
commit
17ba5622d6
|
|
@ -110,7 +110,7 @@ const FundDrive = () => {
|
||||||
formDataForPan.append("panImage", panImage);
|
formDataForPan.append("panImage", panImage);
|
||||||
|
|
||||||
const response = await axios.post(
|
const response = await axios.post(
|
||||||
"http://localhost:5002/api/verify-pan",
|
"https://api.vvet.in/api/verify-pan",
|
||||||
formDataForPan,
|
formDataForPan,
|
||||||
{
|
{
|
||||||
headers: { "Content-Type": "multipart/form-data" },
|
headers: { "Content-Type": "multipart/form-data" },
|
||||||
|
|
@ -147,7 +147,7 @@ const FundDrive = () => {
|
||||||
|
|
||||||
// try {
|
// try {
|
||||||
// await submitVvvetForm(formData);
|
// 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
|
// // Ensure this sends the form data to your backend
|
||||||
// setStep(5); // Show the thank-you screen
|
// setStep(5); // Show the thank-you screen
|
||||||
// } catch (error) {
|
// } catch (error) {
|
||||||
|
|
@ -193,7 +193,7 @@ const FundDrive = () => {
|
||||||
}
|
}
|
||||||
|
|
||||||
const response = await axios.post(
|
const response = await axios.post(
|
||||||
"http://localhost:5002/api/fundraising/submit",
|
"https://api.vvet.in/api/fundraising/submit",
|
||||||
formSubmissionData,
|
formSubmissionData,
|
||||||
{
|
{
|
||||||
headers: { "Content-Type": "multipart/form-data" },
|
headers: { "Content-Type": "multipart/form-data" },
|
||||||
|
|
|
||||||
|
|
@ -83,7 +83,7 @@ const FundDrive = () => {
|
||||||
// setIsLoading(true);
|
// setIsLoading(true);
|
||||||
|
|
||||||
const response = await axios.post(
|
const response = await axios.post(
|
||||||
"http://localhost:5002/api/verify-pan",
|
"https://api.vvet.in/api/verify-pan",
|
||||||
formDataForPan,
|
formDataForPan,
|
||||||
{
|
{
|
||||||
headers: {
|
headers: {
|
||||||
|
|
@ -161,7 +161,7 @@ const FundDrive = () => {
|
||||||
}
|
}
|
||||||
|
|
||||||
const response = await axios.post(
|
const response = await axios.post(
|
||||||
"http://localhost:5002/api/donor/submit",
|
"https://api.vvet.in/api/donor/submit",
|
||||||
formSubmissionData,
|
formSubmissionData,
|
||||||
{ headers: { "Content-Type": "multipart/form-data" } }
|
{ headers: { "Content-Type": "multipart/form-data" } }
|
||||||
);
|
);
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@ import axios from 'axios';
|
||||||
|
|
||||||
export const submitVvvetForm = async (formData) => {
|
export const submitVvvetForm = async (formData) => {
|
||||||
try {
|
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;
|
return response.data;
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error('Error submitting form:', error);
|
console.error('Error submitting form:', error);
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@ export default defineConfig({
|
||||||
port: 5174,
|
port: 5174,
|
||||||
proxy: {
|
proxy: {
|
||||||
'/api': {
|
'/api': {
|
||||||
target: 'http://localhost:5002',
|
target: 'https://api.vvet.in',
|
||||||
changeOrigin: true,
|
changeOrigin: true,
|
||||||
secure: false,
|
secure: false,
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue