Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Restrict API Output Formats #164

Open
alanjames1987 opened this issue Jan 7, 2015 · 0 comments
Open

Restrict API Output Formats #164

alanjames1987 opened this issue Jan 7, 2015 · 0 comments

Comments

@alanjames1987
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant