summaryrefslogtreecommitdiff
path: root/lib/api/deploy_keys.rb
diff options
context:
space:
mode:
authorRobert Schilling <rschilling@student.tugraz.at>2017-08-31 13:44:49 +0200
committerRobert Schilling <rschilling@student.tugraz.at>2017-08-31 14:57:47 +0200
commit6a2ee0968e811d31fb4cc23b30a6b42e42adf47b (patch)
tree0f1a0cd92093b13d63d576c7607e5f4b4e330fdc /lib/api/deploy_keys.rb
parenta768e1b7048c17d4dde8ee086c7ff7dc2b43762e (diff)
downloadgitlab-ce-6a2ee0968e811d31fb4cc23b30a6b42e42adf47b.tar.gz
API: Use defined project requirementsrs-api-use-project-requirements
Diffstat (limited to 'lib/api/deploy_keys.rb')
-rw-r--r--lib/api/deploy_keys.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/api/deploy_keys.rb b/lib/api/deploy_keys.rb
index f405c341398..281269b1190 100644
--- a/lib/api/deploy_keys.rb
+++ b/lib/api/deploy_keys.rb
@@ -17,7 +17,7 @@ module API
params do
requires :id, type: String, desc: 'The ID of the project'
end
- resource :projects, requirements: { id: %r{[^/]+} } do
+ resource :projects, requirements: API::PROJECT_ENDPOINT_REQUIREMENTS do
before { authorize_admin_project }
desc "Get a specific project's deploy keys" do