Rails.application.routes.draw do constraints format: :json do scope :api do resources :gangs, only: [:index, :create, :update] do resources :homies, param: :homie_id do collection do get 'info' end member do post 'settle' resources :money_moves end end get 'backup' end resources :work resources :chips, only: %i[index create destroy] resources :chip_values, only: %i[create update destroy] end end get '*path', to: 'static#frontend_static' root to: 'static#frontend_index_html' end