Files
old-roraccounting/config/routes.rb

23 lines
576 B
Ruby

Rails.application.routes.draw do
constraints format: :json do
scope :api do
resources :original_gangstas, only: [:show, :update]
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 'info'
end
member do
post 'settle'
end
end
end
end
get '*path', to: 'static#frontend_static'
root to: 'static#frontend_index_html'
end