serve frontend from rails through protected route
This commit is contained in:
@@ -6,7 +6,12 @@ Rails.application.routes.draw do
|
||||
get 'cash'
|
||||
end
|
||||
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
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user