From 01387cfe89f6ab6949687bed9b2e314794e20b30 Mon Sep 17 00:00:00 2001 From: Dobromir Popov Date: Tue, 30 Apr 2024 02:57:31 +0300 Subject: [PATCH] fix route, so we don't overwrite original files --- pages/cart/translations/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/cart/translations/index.tsx b/pages/cart/translations/index.tsx index 6929349..05282a6 100644 --- a/pages/cart/translations/index.tsx +++ b/pages/cart/translations/index.tsx @@ -22,7 +22,7 @@ const AdminTranslations = () => { }, [locale]); const handleSave = () => { - axiosInstance.post(`/api/translations/${locale}`, translations) + axiosInstance.post(`/api/translations/${locale}/modified`, translations) .then(res => { if (res.data.status === 'Updated') { toast.success('Translations updated!');