HTTP Methods
AI said to use POST instead of GET here. What does that mean?
AI said to use POST instead of GET here. What does that mean?
Seeing POST tells you this request submits data, not merely reads.
GET is read: Address-bar Enter and ordinary links are GET; it is designed to be safely resent and should have no side effects.
POST submits data: Sign-in, save, and order typically use POST; side-effecting operations use it, with server-side idempotency as the safety net.
PUT / DELETE update and remove: Express modification and deletion per the API contract; some APIs use POST uniformly for compatibility—follow the API docs.
The delete button currently sends a GET request, and refresh deletes again. Change it to the semantically correct method (DELETE or the API's agreed POST) and confirm refreshing does not re-trigger it. Verify the method and result in the Network panel afterward.