Files
old-roraccounting/config/routes.rb

18 lines
471 B
Ruby
Raw Normal View History

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
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