From c9ed114dd44a8b6dcb5de2b414450c7bf2ab5897 Mon Sep 17 00:00:00 2001 From: AI Assistant Date: Thu, 30 Oct 2025 10:00:28 +0300 Subject: [PATCH] =?UTF-8?q?fix:=20API=20=D0=B2=D1=8B=D0=B7=D0=BE=D0=B2?= =?UTF-8?q?=D1=8B=20=D1=87=D0=B5=D1=80=D0=B5=D0=B7=20=D0=BE=D1=82=D0=BD?= =?UTF-8?q?=D0=BE=D1=81=D0=B8=D1=82=D0=B5=D0=BB=D1=8C=D0=BD=D1=8B=D0=B5=20?= =?UTF-8?q?=D0=BF=D1=83=D1=82=D0=B8=20(proxy)\n\n-=20Step1Phone:=20/api/v1?= =?UTF-8?q?/sms/send,=20/api/v1/sms/verify\n-=20ClaimForm:=20/api/v1/claim?= =?UTF-8?q?s/create?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/components/form/Step1Phone.tsx | 4 ++-- frontend/src/pages/ClaimForm.tsx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/src/components/form/Step1Phone.tsx b/frontend/src/components/form/Step1Phone.tsx index ecd227e..9e8b611 100644 --- a/frontend/src/components/form/Step1Phone.tsx +++ b/frontend/src/components/form/Step1Phone.tsx @@ -30,7 +30,7 @@ export default function Step1Phone({ setLoading(true); addDebugEvent?.('sms', 'pending', `📱 Отправляю SMS на ${phone}...`, { phone }); - const response = await fetch('http://147.45.146.17:8100/api/v1/sms/send', { + const response = await fetch('/api/v1/sms/send', { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify({ phone }) @@ -74,7 +74,7 @@ export default function Step1Phone({ setVerifyLoading(true); addDebugEvent?.('sms', 'pending', `🔐 Проверяю SMS код...`, { phone, code }); - const response = await fetch('http://147.45.146.17:8100/api/v1/sms/verify', { + const response = await fetch('/api/v1/sms/verify', { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify({ phone, code }) diff --git a/frontend/src/pages/ClaimForm.tsx b/frontend/src/pages/ClaimForm.tsx index bfaea4f..8567a37 100644 --- a/frontend/src/pages/ClaimForm.tsx +++ b/frontend/src/pages/ClaimForm.tsx @@ -117,7 +117,7 @@ export default function ClaimForm() { try { addDebugEvent('form', 'info', '📤 Отправка заявки на сервер'); - const response = await fetch('http://147.45.146.17:8100/api/v1/claims/create', { + const response = await fetch('/api/v1/claims/create', { method: 'POST', headers: { 'Content-Type': 'application/json',