summaryrefslogtreecommitdiff
path: root/lib/api/runners.rb
diff options
context:
space:
mode:
authorTomasz Maczukin <tomasz@maczukin.pl>2016-02-16 12:05:48 +0100
committerTomasz Maczukin <tomasz@maczukin.pl>2016-02-19 13:18:48 +0100
commitb36116f9ad3990cb0d5c81ecb6d5b306dc41fbd5 (patch)
treeb0bbb5bd46e58a808321f9a122ddee34b3badfc3 /lib/api/runners.rb
parentdc182dc50e61bc4d4cde3fb32ee29668ad24513b (diff)
downloadgitlab-ce-b36116f9ad3990cb0d5c81ecb6d5b306dc41fbd5.tar.gz
Move :runner_id param to POST body when enabling specific runner in project
Diffstat (limited to 'lib/api/runners.rb')
-rw-r--r--lib/api/runners.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/api/runners.rb b/lib/api/runners.rb
index 0c158745124..8ec91485b26 100644
--- a/lib/api/runners.rb
+++ b/lib/api/runners.rb
@@ -91,7 +91,9 @@ module API
# runner_id (required) - The ID of the runner
# Example Request:
# POST /projects/:id/runners/:runner_id
- post ':id/runners/:runner_id' do
+ post ':id/runners' do
+ required_attributes! [:runner_id]
+
runner = get_runner(params[:runner_id])
authenticate_enable_runner!(runner)
Ci::RunnerProject.create(runner: runner, project: user_project)