5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-26 09:56:21 +00:00
panel/app/controllers/api/v1/base_controller.rb
2019-09-06 20:41:03 -03:00

14 lines
340 B
Ruby

# frozen_string_literal: true
module Api
module V1
# API
class BaseController < ActionController::Base
http_basic_authenticate_with name: ENV['HTTP_BASIC_USER'],
password: ENV['HTTP_BASIC_PASSWORD']
protect_from_forgery with: :null_session
respond_to :json
end
end
end