summaryrefslogtreecommitdiff
path: root/lib/api
diff options
context:
space:
mode:
authorSean McGivern <sean@mcgivern.me.uk>2017-02-14 11:26:26 +0000
committerSean McGivern <sean@mcgivern.me.uk>2017-02-14 11:26:26 +0000
commit1cac06c4e811ddbfeed8f699cb29ba37394916fb (patch)
treed4d096e9c913edb0a612c43e8d4358180eb9c777 /lib/api
parenteb0ac2b9ba728762c086c59988d2ab24bbd7806e (diff)
parentc2102e6e3bf4fa5220d5fa4d3a4c1549f7385162 (diff)
downloadgitlab-ce-1cac06c4e811ddbfeed8f699cb29ba37394916fb.tar.gz
Merge branch '14492-change-fork-endpoint' into 'master'
Move /projects/fork/:id to /projects/:id/fork in V4 API Closes #14492 See merge request !8940
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 bd4b23195ac..2cacb246db8 100644
--- a/lib/api/projects.rb
+++ b/lib/api/projects.rb
@@ -220,7 +220,7 @@ module API
params do
optional :namespace, type: String, desc: 'The ID or name of the namespace that the project will be forked into'
end
- post 'fork/:id' do
+ post ':id/fork' do
fork_params = declared_params(include_missing: false)
namespace_id = fork_params[:namespace]