summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorJan Provaznik <jprovaznik@gitlab.com>2019-07-09 20:51:42 +0200
committerJan Provaznik <jprovaznik@gitlab.com>2019-08-23 11:16:32 +0200
commitcb81da4df93790e7bf75c183edcf353bb501290e (patch)
treee5d5e73bff4308279697656222535b15e771fd88 /config
parent1c1d47c59744ec3dbd0f2a71df14eed856a3f649 (diff)
downloadgitlab-ce-cb81da4df93790e7bf75c183edcf353bb501290e.tar.gz
Add direct upload support for personal snippets
Diffstat (limited to 'config')
-rw-r--r--config/routes/uploads.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/config/routes/uploads.rb b/config/routes/uploads.rb
index 920f8454ce2..096ef146e07 100644
--- a/config/routes/uploads.rb
+++ b/config/routes/uploads.rb
@@ -30,6 +30,10 @@ scope path: :uploads do
to: 'uploads#create',
constraints: { model: /personal_snippet|user/, id: /\d+/ },
as: 'upload'
+
+ post ':model/authorize',
+ to: 'uploads#authorize',
+ constraints: { model: /personal_snippet|user/ }
end
# Redirect old note attachments path to new uploads path.