From 0c84d8ef75722c734f03070306858b4081a2262c Mon Sep 17 00:00:00 2001 From: sumn2u Date: Fri, 21 Jun 2024 17:54:11 -0500 Subject: [PATCH] save image information on clicking checkbox --- client/src/utils/send-data-to-server.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/utils/send-data-to-server.js b/client/src/utils/send-data-to-server.js index c11ec4d..71292ec 100644 --- a/client/src/utils/send-data-to-server.js +++ b/client/src/utils/send-data-to-server.js @@ -39,7 +39,7 @@ export const saveActiveImage = (activeImage) => { } return new Promise((resolve, reject) => { - axios.post(`${config.SERVER_URL}/activeImage`, imageData) + axios.post(`${config.SERVER_URL}/save`, imageData) .then(response => { resolve(response.data); // Resolve with response data })