Thanks that worked! I was a bit surprised since I already had it in the type routing plugin, is that expected?
Hi Jeremy,I put this gist together. I was wondering about what happens in lines 81-84. I was expecting type_routing plugin to take care of the Content-Type headers over default_headers plugin and Rodauth for DRY reasons. Like you explained before, that is not the case when using Rodauth JSON responses (lines 87-90) we need to setup line 27.
As I was checking the stuff above I noticed that type_routing only uses the headers defined in the options hash inside the `r.json {}` and `r.html {}` blocks (lines 76-79). Although the block that holds them matches the default_type option it doesn't include the charset definition. Is that because the default_type is expected to be set in the default_headers plugin if we don't use the r.type blocks rather than in the `types` option?