From b36116f9ad3990cb0d5c81ecb6d5b306dc41fbd5 Mon Sep 17 00:00:00 2001 From: Tomasz Maczukin Date: Tue, 16 Feb 2016 12:05:48 +0100 Subject: Move :runner_id param to POST body when enabling specific runner in project --- lib/api/runners.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lib') 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) -- cgit v1.2.1