update changeSafeState function to use PUT method for state changes
This commit is contained in:
@@ -198,6 +198,7 @@ export const changeSafeState = async (itemId: number) => {
|
|||||||
const response = await fetch(
|
const response = await fetch(
|
||||||
`https://backend.insta.the1s.de/api/changeSafeState/${itemId}`,
|
`https://backend.insta.the1s.de/api/changeSafeState/${itemId}`,
|
||||||
{
|
{
|
||||||
|
method: "PUT",
|
||||||
headers: {
|
headers: {
|
||||||
Authorization: `Bearer ${Cookies.get("token")}`,
|
Authorization: `Bearer ${Cookies.get("token")}`,
|
||||||
},
|
},
|
||||||
|
Reference in New Issue
Block a user