mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-07 16:29:51 +03:00
GET and POST now same for scheduler
This commit is contained in:
@@ -97,9 +97,9 @@ export function getCustomizations(): AxiosPromise<void> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export function readSchedule(): AxiosPromise<Schedule> {
|
export function readSchedule(): AxiosPromise<Schedule> {
|
||||||
return AXIOS.get('/getSchedule');
|
return AXIOS.get('/schedule');
|
||||||
}
|
}
|
||||||
|
|
||||||
export function writeSchedule(schedule: Schedule): AxiosPromise<void> {
|
export function writeSchedule(schedule: Schedule): AxiosPromise<void> {
|
||||||
return AXIOS.post('/writeSchedule', schedule);
|
return AXIOS.post('/schedule', schedule);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user