diff options
author | Jan Provaznik <jprovaznik@gitlab.com> | 2018-06-12 18:54:37 +0300 |
---|---|---|
committer | Jan Provaznik <jprovaznik@gitlab.com> | 2018-06-18 10:11:02 +0300 |
commit | 656d4ebf67b597e012f97edd04432e402d26fbc2 (patch) | |
tree | 47f64eb022598a158cece229d18b0450f0121573 /config/routes/project.rb | |
parent | 937c1b5be91be4b500fa7cc1faf5d1aabbd16d41 (diff) |
Add workhorse authorize method for project/group uploads
This method can be used by workhorse to get presigned
URLs used for direct upload of files.
Diffstat (limited to 'config/routes/project.rb')
-rw-r--r-- | config/routes/project.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/config/routes/project.rb b/config/routes/project.rb index 6dfbd7ecd1f..b689b9800e6 100644 --- a/config/routes/project.rb +++ b/config/routes/project.rb @@ -406,6 +406,7 @@ constraints(::Constraints::ProjectUrlConstrainer.new) do resources :uploads, only: [:create] do collection do get ":secret/:filename", action: :show, as: :show, constraints: { filename: %r{[^/]+} } + post :authorize end end |