Currently the user edit form uses separate routes for HTMX requests, but the better way is to use existing routes and simply check the HTMX request headers to determine what content to render in the response.
This will require adding a new middleware that can parse the HTMX headers and add relevant data to the request context.
Currently the user edit form uses separate routes for HTMX requests, but the better way is to use existing routes and simply check the HTMX request headers to determine what content to render in the response.
This will require adding a new middleware that can parse the HTMX headers and add relevant data to the request context.