move homies under gang

This commit is contained in:
Bilal
2020-10-08 01:13:57 +03:00
parent 51d8a369a9
commit e65f352108
6 changed files with 30 additions and 17 deletions

View File

@@ -1,19 +1,20 @@
Rails.application.routes.draw do
constraints format: :json do
scope :api do
resources :gangs, only: [:index, :show, :update]
resources :gangs, only: [:index, :create, :update] do
resources :homies, param: :homie_id do
collection do
get 'info'
end
member do
post 'settle'
end
end
end
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