summaryrefslogtreecommitdiff
path: root/lib/api/v3/subscriptions.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/api/v3/subscriptions.rb')
-rw-r--r--lib/api/v3/subscriptions.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/api/v3/subscriptions.rb b/lib/api/v3/subscriptions.rb
index 02a4157c26e..068750ec077 100644
--- a/lib/api/v3/subscriptions.rb
+++ b/lib/api/v3/subscriptions.rb
@@ -14,7 +14,7 @@ module API
requires :id, type: String, desc: 'The ID of a project'
requires :subscribable_id, type: String, desc: 'The ID of a resource'
end
- resource :projects do
+ resource :projects, requirements: { id: %r{[^/]+} } do
subscribable_types.each do |type, finder|
type_singularized = type.singularize
entity_class = ::API::Entities.const_get(type_singularized.camelcase)