Files
old-roraccounting/config/routes.rb

25 lines
630 B
Ruby
Raw Normal View History

2019-06-20 20:48:19 +02:00
Rails.application.routes.draw do
2019-06-21 20:01:43 +02:00
constraints format: :json do
2020-09-04 08:53:13 +03:00
scope :api do
2020-10-08 01:13:57 +03:00
resources :gangs, only: [:index, :create, :update] do
resources :homies, param: :homie_id do
collection do
get 'info'
end
member do
post 'settle'
2020-10-09 16:12:44 +03:00
resources :money_moves
2020-10-08 01:13:57 +03:00
end
end
2020-10-21 15:11:20 +02:00
get 'backup'
2020-10-08 01:13:57 +03:00
end
2020-09-19 04:46:17 +03:00
resources :work
2020-09-04 08:44:06 +03:00
resources :chips, only: %i[index create destroy]
resources :chip_values, only: %i[create update destroy]
2019-06-22 06:17:48 +02:00
end
2019-06-21 20:01:43 +02:00
end
get '*path', to: 'static#frontend_static'
root to: 'static#frontend_index_html'
2019-06-20 20:48:19 +02:00
end