handle requests for frontend files through secured route
This commit is contained in:
@@ -1,12 +1,4 @@
|
||||
class ApplicationController < ActionController::API
|
||||
include Response
|
||||
include ActionView::Layouts
|
||||
|
||||
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
|
||||
include BasicAuth
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user