Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib/api
diff options
context:
space:
mode:
authorRobert Schilling <rschilling@student.tugraz.at>2017-02-20 17:14:48 +0300
committerRobert Schilling <rschilling@student.tugraz.at>2017-02-20 17:14:48 +0300
commit039c6d60fa2cc455956fb0016fc39f3e89a1a88f (patch)
treec421d86147adf041aa8f5dee3e5c8ae7606bf571 /lib/api
parentc89449e6110c2bdf6e1410bae3e7b7d807c5e305 (diff)
API: Moved `DELETE /projects/:id/star` to `POST /projects/:id/unstar`
Diffstat (limited to 'lib/api')
-rw-r--r--lib/api/projects.rb2
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