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:
@@ -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 })
|
||||
|
||||
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user