Created
September 1, 2019 09:28
-
-
Save Eth3rnit3/69868f81c2749b32b4813c2709d6ecef to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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