Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-12-20 21:17:25 +0300
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-12-20 21:17:25 +0300
commit6a5766e370bf16c98129086dbbe94a0747cb35f8 (patch)
tree2d0e0dc6a520a659124059557171b1d4d998d118 /config
parente37ecb7ea6e80d532eed68788a8e9a478122a686 (diff)
parentf4efb19038d01225374c91cca9274cce3d728b3d (diff)
Merge pull request #7978 from cirosantilli/edit-preview-route-test
Add tests for tree edit routes
Diffstat (limited to 'config')
-rw-r--r--config/routes.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/config/routes.rb b/config/routes.rb
index 533e044ca4c..b6c5bb5b908 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -197,6 +197,7 @@ Gitlab::Application.routes.draw do
resources :raw, only: [:show], constraints: {id: /.+/}
resources :tree, only: [:show], constraints: {id: /.+/, format: /(html|js)/ }
resources :edit_tree, only: [:show, :update], constraints: { id: /.+/ }, path: 'edit' do
+ # Cannot be GET to differentiate from GET paths that end in preview.
post :preview, on: :member
end
resources :new_tree, only: [:show, :update], constraints: {id: /.+/}, path: 'new'