From c8782e1a402f187573562ce8af9068898fd01673 Mon Sep 17 00:00:00 2001 From: Valery Sizov Date: Tue, 3 Feb 2015 09:22:56 -0800 Subject: [PATCH] code folding --- config/routes.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/routes.rb b/config/routes.rb index 512066e5d4e..f0abd876ecd 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -229,11 +229,11 @@ Gitlab::Application.routes.draw do resources :tree, only: [:show], constraints: { id: /.+/, format: /(html|js)/ } resource :avatar, only: [:show, :destroy] - resources :commit, only: [:show], constraints: {id: /[[:alnum:]]{6,40}/} do + resources :commit, only: [:show], constraints: { id: /[[:alnum:]]{6,40}/ } do get :branches, on: :member end - resources :commits, only: [:show], constraints: {id: /(?:[^.]|\.(?!atom$))+/, format: /atom/} + resources :commits, only: [:show], constraints: { id: /(?:[^.]|\.(?!atom$))+/, format: /atom/ } resources :compare, only: [:index, :create] resources :blame, only: [:show], constraints: { id: /.+/ } resources :network, only: [:show], constraints: { id: /(?:[^.]|\.(?!json$))+/, format: /json/ } -- GitLab