debian-mirror-gitlab/doorkeeper/spec/dummy/app/controllers/metal_controller.rb
2020-01-04 02:51:38 +05:30

11 lines
267 B
Ruby

class MetalController < ActionController::Metal
include AbstractController::Callbacks
include ActionController::Head
include Doorkeeper::Rails::Helpers
before_action :doorkeeper_authorize!
def index
self.response_body = { ok: true }.to_json
end
end