diff options
author | Jan Provaznik <jprovaznik@gitlab.com> | 2019-07-09 20:51:42 +0200 |
---|---|---|
committer | Jan Provaznik <jprovaznik@gitlab.com> | 2019-08-23 11:19:14 +0200 |
commit | 41d52bbfe9725a93013ea6b072efcdc16e591b14 (patch) | |
tree | b8ab973e0173fd61f32f17f19c47476b1638c40d /config | |
parent | 36a729f05f1b9c2b3935b9d121b8fe3172ce5cc1 (diff) | |
download | gitlab-ce-41d52bbfe9725a93013ea6b072efcdc16e591b14.tar.gz |
Add direct upload support for personal snippets
Diffstat (limited to 'config')
-rw-r--r-- | config/routes/uploads.rb | 4 |
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. |