ApiController: private some methods
This commit is contained in:
parent
f7c23bb435
commit
0b2a98cdce
1 changed files with 2 additions and 0 deletions
|
@ -15,6 +15,8 @@ class APIController < ApplicationController
|
|||
administrateur.valid_api_token?(token)
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
def default_format_json
|
||||
request.format = "json" if !request.params[:format]
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue