I'm not sure if there is a convenient way to do this or not, but it would be very handy if requests could be automatically parsed based on the content-type header. Right now the content-type header is pretty much useless in mirage's context, unless it's implemented manually in all the routes that require it.
Perhaps an API to add middle-ware to run on all requests would make something like this easier.
I'm not sure if there is a convenient way to do this or not, but it would be very handy if requests could be automatically parsed based on the content-type header. Right now the content-type header is pretty much useless in mirage's context, unless it's implemented manually in all the routes that require it.
Perhaps an API to add middle-ware to run on all requests would make something like this easier.