experiment

This commit is contained in:
Paul Liverman III 2018-04-24 17:29:34 -07:00
parent 9a2c8cc712
commit 3cd5f255ec

View File

@ -12,7 +12,7 @@ class API extends Application
@path: "/v1" @path: "/v1"
@name: "api_" @name: "api_"
@before_filter( capture_errors_json json_params => @before_filter( api_request =>
-- TODO implement Authorization: api_key VALUE as acceptable method to send api_key -- TODO implement Authorization: api_key VALUE as acceptable method to send api_key
yield_error "api_key not specified!" unless @params.api_key -- this does not seem to be triggering!!! yield_error "api_key not specified!" unless @params.api_key -- this does not seem to be triggering!!!
@api_key = APIKeys\find key: @params.api_key @api_key = APIKeys\find key: @params.api_key