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