Files
old-roraccounting/app/controllers/application_controller.rb

13 lines
392 B
Ruby
Raw Normal View History

2019-06-20 20:48:19 +02:00
class ApplicationController < ActionController::API
2019-06-21 20:01:43 +02:00
include Response
include ActionView::Layouts
2020-05-21 07:46:41 +02:00
include ActionController::HttpAuthentication::Basic::ControllerMethods
http_basic_authenticate_with name: ENV['BASIC_AUTH_USERNAME'],
password: ENV['BASIC_AUTH_PASSWORD']
def frontend_index_html
render file: 'protected_public/index.html'
end
2019-06-20 20:48:19 +02:00
end