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',