diff options
author | Robert Schilling <rschilling@student.tugraz.at> | 2017-02-20 15:14:48 +0100 |
---|---|---|
committer | Robert Schilling <rschilling@student.tugraz.at> | 2017-02-20 15:14:48 +0100 |
commit | 039c6d60fa2cc455956fb0016fc39f3e89a1a88f (patch) | |
tree | c421d86147adf041aa8f5dee3e5c8ae7606bf571 /lib | |
parent | c89449e6110c2bdf6e1410bae3e7b7d807c5e305 (diff) | |
download | gitlab-ce-039c6d60fa2cc455956fb0016fc39f3e89a1a88f.tar.gz |
API: Moved `DELETE /projects/:id/star` to `POST /projects/:id/unstar`api-star-restful
Diffstat (limited to 'lib')
-rw-r--r-- | lib/api/projects.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/api/projects.rb b/lib/api/projects.rb index 68c2732ec80..366e5679edd 100644 --- a/lib/api/projects.rb +++ b/lib/api/projects.rb @@ -266,7 +266,7 @@ module API desc 'Unstar a project' do success Entities::Project end - delete ':id/star' do + post ':id/unstar' do if current_user.starred?(user_project) current_user.toggle_star(user_project) user_project.reload |