molecule
molecule copied to clipboard
Accept format middleware
A middleware for automatically adding a format extension at the end of the request path based on the Accept http header.
For instance:
GET /some/resource
Accept: application/json
would become:
GET /some/resource.json
Accept: application/json