Merge branch 'hotfix/changeDomain' into 'main'
Hotfix/change domain See merge request witapp/aura-webapp!799
This commit is contained in:
commit
ded38f67ef
@ -226,10 +226,15 @@ export interface PayloadGetLocale {
|
|||||||
|
|
||||||
export const getLocaleRequest = (data: PayloadGetLocale) => {
|
export const getLocaleRequest = (data: PayloadGetLocale) => {
|
||||||
const url = new URL(routes.server.getLocaleCDN());
|
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, {
|
return new Request(url, {
|
||||||
method: "POST",
|
method: "GET",
|
||||||
body,
|
|
||||||
headers: getBaseHeaders()
|
headers: getBaseHeaders()
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user