Hotfix/change domain

This commit is contained in:
Daniil Chemerkin 2025-07-14 14:28:12 +00:00
parent 8495f874fd
commit 26cc5f93e8

View File

@ -226,10 +226,15 @@ export interface PayloadGetLocale {
export const getLocaleRequest = (data: PayloadGetLocale) => {
const url = new URL(routes.server.getLocaleCDN());
const body = JSON.stringify(data);
// Добавляем параметры запроса в URL
const params = new URLSearchParams();
params.append('funnel', data.funnel);
params.append('locale', data.locale);
url.search = params.toString();
return new Request(url, {
method: "POST",
body,
method: "GET",
headers: getBaseHeaders()
});
};