Include routes for investments moderation
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user