5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-07-04 00:45:45 +00:00
panel/app/controllers/api/v1/base_controller.rb

18 lines
279 B
Ruby
Raw Normal View History

2019-09-05 18:56:24 +00:00
# frozen_string_literal: true
module Api
module V1
# API
class BaseController < ActionController::Base
protect_from_forgery with: :null_session
2019-09-06 23:40:33 +00:00
respond_to :json
2020-03-23 20:46:19 +00:00
private
def origin
request.headers['Origin']
end
2019-09-05 18:56:24 +00:00
end
end
end