add homie to the gang when homie is created

This commit is contained in:
Bilal
2020-10-07 22:47:19 +03:00
parent 8d7716f2e0
commit 8832ba071b
9 changed files with 43 additions and 5 deletions

View File

@@ -1,7 +1,7 @@
Rails.application.routes.draw do
constraints format: :json do
scope :api do
resources :gangs, only: [:show, :update]
resources :gangs, only: [:index, :show, :update]
resources :money_moves
resources :work
resources :chips, only: %i[index create destroy]