JSON APIs are a code smell 🌶️
HTMX is so compelling because it actually writes sane frontends for once.
The backend is the final say in state, authorization, and error handling. Expecting the frontend to optimistically duplicate all this logic is an impossible task.