summaryrefslogtreecommitdiff
path: root/lib/api/v3/files.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/api/v3/files.rb')
-rw-r--r--lib/api/v3/files.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/api/v3/files.rb b/lib/api/v3/files.rb
index 4f8d58d37c8..13542b0c71c 100644
--- a/lib/api/v3/files.rb
+++ b/lib/api/v3/files.rb
@@ -40,7 +40,7 @@ module API
params do
requires :id, type: String, desc: 'The project ID'
end
- resource :projects do
+ resource :projects, requirements: { id: %r{[^/]+} } do
desc 'Get a file from repository'
params do
requires :file_path, type: String, desc: 'The path to the file. Ex. lib/class.rb'