api: Make JSON the default response format.
authorBrett Smith <brett@curoverse.com>
Tue, 29 Apr 2014 20:28:50 +0000 (16:28 -0400)
committerBrett Smith <brett@curoverse.com>
Tue, 29 Apr 2014 20:45:45 +0000 (16:45 -0400)
commit8adde5132926e8f9cc1b01d79f9307614cc6021e
tree5a8d3dde341c87a0d8c1351a4f5a3d1dfba0745b
parent8eaad00b025167a7505ba11ad6a05b52a43c2399
api: Make JSON the default response format.

Rails assumes that the request should be sent in HTML unless a format
parameter or the Accept header expressly overrides that.  This change
makes JSON the default unless the request specified it would like
HTML.
services/api/app/controllers/application_controller.rb
services/api/test/integration/login_workflow_test.rb [new file with mode: 0644]