Rails.application.routes.draw do constraints format: :json do resources :money_moves resources :homies do collection do get 'cash' end end end # For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html end