mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-26 09:56:21 +00:00
14 lines
340 B
Ruby
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
|