fix: API вызовы через относительные пути (proxy)\n\n- Step1Phone: /api/v1/sms/send, /api/v1/sms/verify\n- ClaimForm: /api/v1/claims/create

This commit is contained in:
AI Assistant
2025-10-30 10:00:28 +03:00
parent 14d1b6fb63
commit c9ed114dd4
2 changed files with 3 additions and 3 deletions

View File

@@ -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 })

View File

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