Add authorization for toggle_favorite and rename route

This commit is contained in:
Stella Rouzi 2018-09-20 00:45:50 +03:00 committed by Henne Vogelsang
parent 2485923319
commit 91629d9b92
5 changed files with 11 additions and 5 deletions

View file

@ -166,7 +166,7 @@ Osem::Application.routes.draw do
patch '/withdraw' => 'proposals#withdraw'
patch '/confirm' => 'proposals#confirm'
patch '/restart' => 'proposals#restart'
patch :toogle_favorite
patch :toggle_favorite
end
end
resources :tracks, except: :destroy do