Include routes for investments moderation
This commit is contained in:
@@ -78,6 +78,7 @@ namespace :admin do
|
|||||||
end
|
end
|
||||||
|
|
||||||
resources :tags, only: [:index, :create, :update, :destroy]
|
resources :tags, only: [:index, :create, :update, :destroy]
|
||||||
|
|
||||||
resources :officials, only: [:index, :edit, :update, :destroy] do
|
resources :officials, only: [:index, :edit, :update, :destroy] do
|
||||||
get :search, on: :collection
|
get :search, on: :collection
|
||||||
end
|
end
|
||||||
@@ -93,6 +94,7 @@ namespace :admin do
|
|||||||
get :search, on: :collection
|
get :search, on: :collection
|
||||||
get :summary, on: :collection
|
get :summary, on: :collection
|
||||||
end
|
end
|
||||||
|
|
||||||
resources :valuator_groups
|
resources :valuator_groups
|
||||||
|
|
||||||
resources :managers, only: [:index, :create, :destroy] do
|
resources :managers, only: [:index, :create, :destroy] do
|
||||||
|
|||||||
@@ -1,7 +1,12 @@
|
|||||||
resources :budgets, only: [:show, :index] do
|
resources :budgets, only: [:show, :index] do
|
||||||
resources :groups, controller: "budgets/groups", only: [:show]
|
resources :groups, controller: "budgets/groups", only: [:show]
|
||||||
resources :investments, controller: "budgets/investments", only: [:index, :new, :create, :show, :destroy] do
|
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 }
|
collection { get :suggest }
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@@ -27,4 +27,9 @@ namespace :moderation do
|
|||||||
put :hide, on: :member
|
put :hide, on: :member
|
||||||
put :moderate, on: :collection
|
put :moderate, on: :collection
|
||||||
end
|
end
|
||||||
|
|
||||||
|
resources :budget_investments, only: :index do
|
||||||
|
put :hide, on: :member
|
||||||
|
put :moderate, on: :collection
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user