Reputation: 22515
I have a controller method that will return just JSON. It will never be rendered in HTML ever. I know I can call controllerMethod.json?params=BLAHBLAH and it will return JSON for me, but if someone calls controllerMethod?params=BLAH I always want to return JSON as well... How do I do this?
Upvotes: 2
Views: 1525