Skip to content

Instantly share code, notes, and snippets.

View mayesa's full-sized avatar

Mariano Ayesa mayesa

View GitHub Profile
def handle_api_auth_operation(route)
operation_name = request.params["operationName"]
return if operation_name.blank?
# Set POST as default http_method
http_method = "POST"
path = ''
case operation_name
when 'Authenticate'
path = '/login'