diff options
author | Stan Hu <stanhu@gmail.com> | 2015-09-15 03:57:41 +0300 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2015-09-15 03:57:41 +0300 |
commit | 81e741af2445f1e403c02dc172a47ade641eed60 (patch) | |
tree | e7d6a3e60c219716041f01bd69e01aea2b514bf6 /config | |
parent | c99473e57ca90f95c4e31fc1582fb94731257442 (diff) | |
parent | e2ece2bc350bf881e9716e51c01a59eecac65fc9 (diff) |
Merge pull request #9138 from liyakun/master
add "replace" and "upload" functionality
Diffstat (limited to 'config')
-rw-r--r-- | config/routes.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/config/routes.rb b/config/routes.rb index fad6b3c569a..54e109f34fa 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -358,6 +358,16 @@ Gitlab::Application.routes.draw do to: 'blob#destroy', constraints: { id: /.+/, format: false } ) + put( + '/blob/*id', + to: 'blob#update', + constraints: { id: /.+/, format: false } + ) + post( + '/blob/*id', + to: 'blob#create', + constraints: { id: /.+/, format: false } + ) end scope do |