Class: FfcrmEndpoint::EndpointsController

Inherits:
ActionController::Base
  • Object
show all
Defined in:
app/controllers/ffcrm_endpoint/endpoints_controller.rb

Instance Method Summary collapse

Instance Method Details

#consumeObject



7
8
9
10
11
12
13
14
15
16
# File 'app/controllers/ffcrm_endpoint/endpoints_controller.rb', line 7

def consume

  if endpoint.authenticate
    endpoint.process
    respond_with('', location: nil, status: 201)
  else
    respond_with('', location: nil, status: :unauthorized)
  end

end