Sveriges mest populära poddar

hx-pod

The basics: hx-put, hx-patch, and hx-delete

5 min • 23 januari 2024

What on earth are PUT PATCH and DELETE and why would I use them instead of POST?

Well, which do you like better?
A) <button hx-delete="/articles/1">
B) <button hx-post="/articles/1/delete">

Förekommer på
00:00 -00:00