Files
old-roraccounting/config/routes.rb

18 lines
471 B
Ruby

Rails.application.routes.draw do
constraints format: :json do
resources :money_moves
resources :homies do
collection 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