Alter batcher urls in frontend

This commit is contained in:
Michail Kostochka 2024-12-17 14:27:12 +03:00
parent aa5805e14d
commit 4cb758199d
2 changed files with 4 additions and 4 deletions

View File

@ -75,7 +75,7 @@ export function PointsZoom({ points, sameInterval, setSameInterval, sameCoords,
dispatch<any>(updateEnergyRequestAsync(returnEnergy));
} else {
dispatch(meRequest());
axios.post(`${urlClick}/api/v1/batch-click/`,
axios.post(`${urlClick}/api/v1/batcher/batch-click/`,
{
count: initPoints
},

View File

@ -78,7 +78,7 @@ export const meRequestAsync = (): ThunkAction<void, RootState, unknown, Action<s
}
const firstClick = (token: string) => {
axios.post(`${URLClick}/api/v1/batch-click/`,
axios.post(`${URLClick}/api/v1/batcher/batch-click/`,
{
count: 1
},
@ -116,7 +116,7 @@ export const meRequestAsync = (): ThunkAction<void, RootState, unknown, Action<s
const user = resp.data;
sessionStorage.setItem('shT', 't');
sessionStorage.setItem('shL', 't');
axios.get(`${URLClick}/api/v1/energy`, {
axios.get(`${URLClick}/api/v1/batcher/energy`, {
headers: {
//"Content-type": "application/json",
"Authorization": `TelegramToken ${token}`
@ -213,7 +213,7 @@ export const meRequestAsync = (): ThunkAction<void, RootState, unknown, Action<s
if (!avatar) {
avatar = '';
}
axios.get(`${URLClick}/api/v1/energy`, {
axios.get(`${URLClick}/api/v1/batcher/energy`, {
headers: {
//"Content-type": "application/json",
"Authorization": `TelegramToken ${token}`