Add authorization for toggle_favorite and rename route
This commit is contained in:
parent
2485923319
commit
91629d9b92
5 changed files with 11 additions and 5 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue