diff options
author | Jarka Kadlecova <jarka@gitlab.com> | 2017-12-06 14:36:11 +0300 |
---|---|---|
committer | Jarka Kadlecova <jarka@gitlab.com> | 2017-12-07 14:27:52 +0300 |
commit | f7c18ca31469b199c1a898cef583c9aae99f1375 (patch) | |
tree | 72182129a81d996a886ea765514d20bc7e2bcf8c /config/routes/group.rb | |
parent | fe62860e05ca6e3ef7125fe92fdf52cd6f7b63df (diff) |
Support uploads for groups
Diffstat (limited to 'config/routes/group.rb')
-rw-r--r-- | config/routes/group.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/config/routes/group.rb b/config/routes/group.rb index db99e10bb9a..976837a246d 100644 --- a/config/routes/group.rb +++ b/config/routes/group.rb @@ -49,6 +49,12 @@ constraints(GroupUrlConstrainer.new) do post :resend_invite, on: :member delete :leave, on: :collection end + + resources :uploads, only: [:create] do + collection do + get ":secret/:filename", action: :show, as: :show, constraints: { filename: /[^\/]+/ } + end + end end scope(path: '*id', |