diff options
author | liyakun <liyakun127@gmail.com> | 2015-09-10 17:18:40 +0300 |
---|---|---|
committer | liyakun <liyakun127@gmail.com> | 2015-09-15 03:12:56 +0300 |
commit | e2ece2bc350bf881e9716e51c01a59eecac65fc9 (patch) | |
tree | 422d043e1cd6bc09c62fd726958384c320c483d8 /config | |
parent | 7abb744eb961d95ef9f34e8b64c47084d3f620b6 (diff) |
Add "Replace" and "Upload" features
Refactor upload and replace functionality
Rename file and move CSS
Fix typo
Make dropzone a div
Remove unnecessary file
Change color of "upload existing one"
Add missing changes
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 011af4825fa..ab1d8f7ce92 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -356,6 +356,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 |