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
|
2020-05-21 18:14:15 +02:00
|
|
|
|
2020-05-21 19:48:20 +02:00
|
|
|
get '*path', to: 'static#frontend_static'
|
|
|
|
|
root to: 'static#frontend_index_html'
|
2019-06-20 20:48:19 +02:00
|
|
|
end
|