summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorJeroen Nijhof <jeroen@jeroennijhof.nl>2016-01-07 13:58:19 +0100
committerJeroen Nijhof <jeroen@jeroennijhof.nl>2016-01-07 13:58:19 +0100
commit1695063d15498ce41d3e3f62b7ec88effb9e1eca (patch)
tree5e3fd6d580c58d942f844273daae934d5f54001f /config
parentbde76f62fc2bd259dcc37ca649a01a84035ddcd9 (diff)
parent3b04268f6825776e12d3a7766eeb059f892765f3 (diff)
downloadgitlab-ce-1695063d15498ce41d3e3f62b7ec88effb9e1eca.tar.gz
Merge gitlab.com:gitlab-org/gitlab-ce
Diffstat (limited to 'config')
-rw-r--r--config/routes.rb18
1 files changed, 18 insertions, 0 deletions
diff --git a/config/routes.rb b/config/routes.rb
index 1aa6eed8c94..505b198e222 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -442,6 +442,24 @@ Rails.application.routes.draw do
end
scope do
+ get(
+ '/find_file/*id',
+ to: 'find_file#show',
+ constraints: { id: /.+/, format: /html/ },
+ as: :find_file
+ )
+ end
+
+ scope do
+ get(
+ '/files/*id',
+ to: 'find_file#list',
+ constraints: { id: /(?:[^.]|\.(?!json$))+/, format: /json/ },
+ as: :files
+ )
+ end
+
+ scope do
post(
'/create_dir/*id',
to: 'tree#create_dir',