update changeSafeState function to use PUT method for state changes

This commit is contained in:
2025-09-16 13:40:23 +02:00
parent 2143d53eb5
commit a0be100db5

View File

@@ -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")}`,
}, },