5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-26 12:26:22 +00:00
panel/app/controllers/api/v1/base_controller.rb

15 lines
340 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
2019-09-06 23:40:33 +00:00
http_basic_authenticate_with name: ENV['HTTP_BASIC_USER'],
password: ENV['HTTP_BASIC_PASSWORD']
2019-09-05 18:56:24 +00:00
protect_from_forgery with: :null_session
2019-09-06 23:40:33 +00:00
respond_to :json
2019-09-05 18:56:24 +00:00
end
end
end