Files
old-roraccounting/config/routes.rb
2020-10-07 22:47:19 +03:00

23 lines
572 B
Ruby

Rails.application.routes.draw do
constraints format: :json do
scope :api do
resources :gangs, only: [:index, :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