slimnate / laser-beam

Error/app event logging platform
1 stars 0 forks source link

User HTMX headers instead of separate routes for HTMX reqeusts #2

Closed slimnate closed 9 months ago

slimnate commented 9 months ago

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.