Rails.application.routes.draw do constraints format: :json do resources :money_moves resources :chips, only: %i[index create destroy] resources :chip_values, only: %i[create update destroy] 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