diff options
author | Valery Sizov <vsv2711@gmail.com> | 2015-03-20 18:33:04 +0200 |
---|---|---|
committer | Valery Sizov <vsv2711@gmail.com> | 2015-03-20 19:26:49 +0200 |
commit | 3d7eb9d9151773e01c34cf53dfc91e6bfc2207b3 (patch) | |
tree | 9863c5bea05e24e32bd37c695303a612cd607df3 /config | |
parent | ff0b455a6b54551f7fd4f5ce653ceb3499d099b1 (diff) | |
download | gitlab-ci-3d7eb9d9151773e01c34cf53dfc91e6bfc2207b3.tar.gz |
improve commit routing
Diffstat (limited to 'config')
-rw-r--r-- | config/routes.rb | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/config/routes.rb b/config/routes.rb index d6d912f..1ee64ba 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -28,14 +28,15 @@ Rails.application.routes.draw do end resource :charts, only: [:show] - resources :commits, only: [] do - member do - get :status + + resources :refs, constraints: { ref_id: /.*/ }, only: [] do + resources :commits, only: [:show] do + member do + get :status + end end end - get '/commit/:sha/ref/*ref' => 'commits#show', as: :show_commit - resources :builds, only: [:show] do member do get :cancel |