Skip to content

Instantly share code, notes, and snippets.

@Eth3rnit3
Created September 1, 2019 09:28
Show Gist options
  • Save Eth3rnit3/69868f81c2749b32b4813c2709d6ecef to your computer and use it in GitHub Desktop.
Save Eth3rnit3/69868f81c2749b32b4813c2709d6ecef to your computer and use it in GitHub Desktop.
Rails.application.routes.draw do
namespace :api do
namespace :v1 do
get 'tests', to: 'tests#index'
end
end
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 https://guides.rubyonrails.org/routing.html
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment