Include routes for investments moderation

This commit is contained in:
Angel Perez
2018-06-13 11:44:24 -04:00
parent 335f78ae24
commit 4737664f6e
3 changed files with 13 additions and 1 deletions

View File

@@ -78,6 +78,7 @@ namespace :admin do
end
resources :tags, only: [:index, :create, :update, :destroy]
resources :officials, only: [:index, :edit, :update, :destroy] do
get :search, on: :collection
end
@@ -93,6 +94,7 @@ namespace :admin do
get :search, on: :collection
get :summary, on: :collection
end
resources :valuator_groups
resources :managers, only: [:index, :create, :destroy] do

View File

@@ -1,7 +1,12 @@
resources :budgets, only: [:show, :index] do
resources :groups, controller: "budgets/groups", only: [:show]
resources :investments, controller: "budgets/investments", only: [:index, :new, :create, :show, :destroy] do
member { post :vote }
member do
post :vote
put :flag
put :unflag
end
collection { get :suggest }
end

View File

@@ -27,4 +27,9 @@ namespace :moderation do
put :hide, on: :member
put :moderate, on: :collection
end
resources :budget_investments, only: :index do
put :hide, on: :member
put :moderate, on: :collection
end
end