Alter batcher urls in frontend
This commit is contained in:
parent
aa5805e14d
commit
4cb758199d
|
@ -75,7 +75,7 @@ export function PointsZoom({ points, sameInterval, setSameInterval, sameCoords,
|
||||||
dispatch<any>(updateEnergyRequestAsync(returnEnergy));
|
dispatch<any>(updateEnergyRequestAsync(returnEnergy));
|
||||||
} else {
|
} else {
|
||||||
dispatch(meRequest());
|
dispatch(meRequest());
|
||||||
axios.post(`${urlClick}/api/v1/batch-click/`,
|
axios.post(`${urlClick}/api/v1/batcher/batch-click/`,
|
||||||
{
|
{
|
||||||
count: initPoints
|
count: initPoints
|
||||||
},
|
},
|
||||||
|
|
|
@ -78,7 +78,7 @@ export const meRequestAsync = (): ThunkAction<void, RootState, unknown, Action<s
|
||||||
}
|
}
|
||||||
|
|
||||||
const firstClick = (token: string) => {
|
const firstClick = (token: string) => {
|
||||||
axios.post(`${URLClick}/api/v1/batch-click/`,
|
axios.post(`${URLClick}/api/v1/batcher/batch-click/`,
|
||||||
{
|
{
|
||||||
count: 1
|
count: 1
|
||||||
},
|
},
|
||||||
|
@ -116,7 +116,7 @@ export const meRequestAsync = (): ThunkAction<void, RootState, unknown, Action<s
|
||||||
const user = resp.data;
|
const user = resp.data;
|
||||||
sessionStorage.setItem('shT', 't');
|
sessionStorage.setItem('shT', 't');
|
||||||
sessionStorage.setItem('shL', 't');
|
sessionStorage.setItem('shL', 't');
|
||||||
axios.get(`${URLClick}/api/v1/energy`, {
|
axios.get(`${URLClick}/api/v1/batcher/energy`, {
|
||||||
headers: {
|
headers: {
|
||||||
//"Content-type": "application/json",
|
//"Content-type": "application/json",
|
||||||
"Authorization": `TelegramToken ${token}`
|
"Authorization": `TelegramToken ${token}`
|
||||||
|
@ -213,7 +213,7 @@ export const meRequestAsync = (): ThunkAction<void, RootState, unknown, Action<s
|
||||||
if (!avatar) {
|
if (!avatar) {
|
||||||
avatar = '';
|
avatar = '';
|
||||||
}
|
}
|
||||||
axios.get(`${URLClick}/api/v1/energy`, {
|
axios.get(`${URLClick}/api/v1/batcher/energy`, {
|
||||||
headers: {
|
headers: {
|
||||||
//"Content-type": "application/json",
|
//"Content-type": "application/json",
|
||||||
"Authorization": `TelegramToken ${token}`
|
"Authorization": `TelegramToken ${token}`
|
||||||
|
|
Loading…
Reference in New Issue
Block a user