fix API V1 default format
This commit is contained in:
parent
1a1a97f79c
commit
b0fc7665e5
1 changed files with 1 additions and 1 deletions
|
@ -17,6 +17,6 @@ class APIController < ApplicationController
|
||||||
end
|
end
|
||||||
|
|
||||||
def default_format_json
|
def default_format_json
|
||||||
request.format = "json" unless request.accept
|
request.format = "json" unless request.params[:format]
|
||||||
end
|
end
|
||||||
end
|
end
|
Loading…
Reference in a new issue