From 4cb758199dd6d1a202963e1c26aaa9498d8e67fd Mon Sep 17 00:00:00 2001 From: Michail Kostochka Date: Tue, 17 Dec 2024 14:27:12 +0300 Subject: [PATCH] Alter batcher urls in frontend --- frontend/src/shared/Clicker/PointsZoom/PointsZoom.tsx | 2 +- frontend/src/store/me/actions.ts | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/frontend/src/shared/Clicker/PointsZoom/PointsZoom.tsx b/frontend/src/shared/Clicker/PointsZoom/PointsZoom.tsx index ffc6966..115de54 100644 --- a/frontend/src/shared/Clicker/PointsZoom/PointsZoom.tsx +++ b/frontend/src/shared/Clicker/PointsZoom/PointsZoom.tsx @@ -75,7 +75,7 @@ export function PointsZoom({ points, sameInterval, setSameInterval, sameCoords, dispatch(updateEnergyRequestAsync(returnEnergy)); } else { dispatch(meRequest()); - axios.post(`${urlClick}/api/v1/batch-click/`, + axios.post(`${urlClick}/api/v1/batcher/batch-click/`, { count: initPoints }, diff --git a/frontend/src/store/me/actions.ts b/frontend/src/store/me/actions.ts index d4b9f89..7097c30 100644 --- a/frontend/src/store/me/actions.ts +++ b/frontend/src/store/me/actions.ts @@ -78,7 +78,7 @@ export const meRequestAsync = (): ThunkAction { - 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