Implement pausing

This commit is contained in:
Alex Holliday committed 2024-08-29 12:17:37 -07:00
1 parent 49eded1508
commit 4d78163121
3 files changed
+26 -9

No files matched your search

+10 -6
View File
@@ -195,12 +195,16 @@ class NetworkService {
* @returns {Promise<AxiosResponse>} The response from the axios POST request.
*/
async pauseMonitorById(authToken, monitorId) {
return this.axiosInstance.post(`/monitors/pause/${monitorId}`, {
headers: {
Authorization: `Bearer ${authToken}`,
"Content-Type": "application/json",
},
});
return this.axiosInstance.post(
`/monitors/pause/${monitorId}`,
{},
{
headers: {
Authorization: `Bearer ${authToken}`,
"Content-Type": "application/json",
},
}
);
}
/**