diff --git a/fever_api.rb b/fever_api.rb index a2bc9463b..dd249109c 100644 --- a/fever_api.rb +++ b/fever_api.rb @@ -34,15 +34,15 @@ def authenticated?(api_key) get "/" do content_type :json - get_response(params) + build_response(params) end post "/" do content_type :json - get_response(params) + build_response(params) end - def get_response(params, is_json = true) + def build_response(params, is_json = true) response = {} response[:api_version] = 3 response[:auth] = 1