Merge pull request #569 from mertssmnoglu/mertssmnoglu-restful-http-methods
fix: use correct request methods edit=PUT, delete=DELETE
This commit is contained in:
5 files changed
+28
-16
No files matched your search
@@ -80,7 +80,7 @@ export const updateUptimeMonitor = createAsyncThunk(
|
||||
notifications: monitor.notifications,
|
||||
};
|
||||
const res = await axiosInstance.put(
|
||||
`/monitors/edit/${monitor._id}`,
|
||||
`/monitors/${monitor._id}`,
|
||||
updatedFields,
|
||||
{
|
||||
headers: {
|
||||
|
||||
Reference in new issue
Block a user