handle requests for frontend files through secured route
This commit is contained in:
@@ -8,10 +8,6 @@ Rails.application.routes.draw do
|
||||
end
|
||||
end
|
||||
|
||||
root to: 'application#frontend_index_html'
|
||||
|
||||
get '*path', to: 'application#frontend_index_html', constraints: lambda { |request|
|
||||
!request.xhr? && request.format.html?
|
||||
}
|
||||
# For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html
|
||||
get '*path', to: 'static#frontend_static'
|
||||
root to: 'static#frontend_index_html'
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user