ApiController: private some methods

This commit is contained in:
simon lehericey 2018-09-26 16:27:58 +02:00
parent f7c23bb435
commit 0b2a98cdce

View file

@ -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