5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-17 08:36:38 +00:00
panel/app/controllers/api/v1/base_controller.rb

17 lines
279 B
Ruby

# frozen_string_literal: true
module Api
module V1
# API
class BaseController < ActionController::Base
protect_from_forgery with: :null_session
respond_to :json
private
def origin
request.headers['Origin']
end
end
end
end