You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using the resource and resources method Locomotive can output the response in various formats, like HTML, XML, and JSON. If I want to disallow one or more of the formats, lets say HTML, and XML, how can I do that?
I only want to output JSON and I want the other extensions to cause an error, but I want to filter between the route having a .json extension and not.
The text was updated successfully, but these errors were encountered:
When using the
resource
andresources
method Locomotive can output the response in various formats, like HTML, XML, and JSON. If I want to disallow one or more of the formats, lets say HTML, and XML, how can I do that?I only want to output JSON and I want the other extensions to cause an error, but I want to filter between the route having a
.json
extension and not.The text was updated successfully, but these errors were encountered: