2019-06-20 20:48:19 +02:00
|
|
|
Rails.application.routes.draw do
|
2019-06-21 20:01:43 +02:00
|
|
|
constraints format: :json do
|
2019-06-22 06:17:48 +02:00
|
|
|
resources :money_moves
|
|
|
|
|
resources :homies do
|
|
|
|
|
collection do
|
|
|
|
|
get 'cash'
|
|
|
|
|
end
|
|
|
|
|
end
|
2019-06-21 20:01:43 +02:00
|
|
|
end
|
2020-05-21 18:14:15 +02:00
|
|
|
|
|
|
|
|
root to: 'application#frontend_index_html'
|
|
|
|
|
|
|
|
|
|
get '*path', to: 'application#frontend_index_html', constraints: lambda { |request|
|
|
|
|
|
!request.xhr? && request.format.html?
|
|
|
|
|
}
|
2019-06-20 20:48:19 +02:00
|
|
|
# For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html
|
|
|
|
|
end
|