summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorRobert Speicher <rspeicher@gmail.com>2012-09-25 23:10:50 -0400
committerRobert Speicher <rspeicher@gmail.com>2012-09-26 16:32:24 -0400
commit6cb626ef516a230b2af4e15145488d4c57cd048c (patch)
treecc67d83ed187708c9dbac705a4e723581f65a473 /config
parent8fe63dab52f6e72aaab1141f2af5d72b012064b7 (diff)
downloadgitlab-ce-6cb626ef516a230b2af4e15145488d4c57cd048c.tar.gz
Add Compare#index and Compare#create actions
Create just redirects to our specially-formatted #show action
Diffstat (limited to 'config')
-rw-r--r--config/routes.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/config/routes.rb b/config/routes.rb
index bc29314e8c5..decf860b143 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -162,7 +162,7 @@ Gitlab::Application.routes.draw do
# XXX: WIP
resources :commit, only: [:show], constraints: {id: /[[:alnum:]]{6,40}/}
resources :commits, only: [:show], constraints: {id: /.+/}
- resources :compare, only: [:index]
+ resources :compare, only: [:index, :create]
resources :blame, only: [:show], constraints: {id: /.+/}
resources :blob, only: [:show], constraints: {id: /.+/}
resources :tree, only: [:show], constraints: {id: /.+/}