summaryrefslogtreecommitdiff
path: root/lib/api
diff options
context:
space:
mode:
authorOswaldo Ferreira <oswaldo@gitlab.com>2017-02-02 15:57:34 -0200
committerOswaldo Ferreira <oswaldo@gitlab.com>2017-02-13 16:58:11 -0200
commitc2102e6e3bf4fa5220d5fa4d3a4c1549f7385162 (patch)
tree1a9504bc3e5a748106ce1b03f271813168743eaf /lib/api
parent49e44d88b90939ece219e2cffc11119854306bd9 (diff)
downloadgitlab-ce-14492-change-fork-endpoint.tar.gz
Move /projects/fork/:id to /projects/:id/fork14492-change-fork-endpoint
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]