Added Legislation Proposals controller

This commit is contained in:
María Checa
2017-09-14 12:51:36 +02:00
parent 335399e571
commit 0245605f19
3 changed files with 161 additions and 0 deletions

View File

@@ -124,10 +124,27 @@ Rails.application.routes.draw do
get :draft_publication
get :allegations
get :result_publication
get :proposals
end
resources :questions, only: [:show] do
resources :answers, only: [:create]
end
resources :proposals do
member do
post :vote
post :vote_featured
put :flag
put :unflag
get :retire_form
get :share
patch :retire
end
collection do
get :map
get :suggest
get :summary
end
end
resources :draft_versions, only: [:show] do
get :go_to_version, on: :collection
get :changes