diff options
author | Jan Provaznik <jprovaznik@gitlab.com> | 2019-07-09 21:51:42 +0300 |
---|---|---|
committer | Jan Provaznik <jprovaznik@gitlab.com> | 2019-08-23 12:17:17 +0300 |
commit | 0ef5f554d1a63362b87f00e10fa517d63c28c6a4 (patch) | |
tree | 99a13c48756392f4008fef29471823769e9bbb2e /config | |
parent | 4a6d22ba439cb20937669c4aa2046acffb36a60e (diff) |
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. |