From c058e3903e01b950d19fe8ce86702f24083c8395 Mon Sep 17 00:00:00 2001 From: Robert Speicher Date: Tue, 25 Sep 2012 18:45:30 -0400 Subject: [PATCH] Finalize new routes --- config/routes.rb | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/config/routes.rb b/config/routes.rb index 01889bb2..bc29314e 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -161,31 +161,25 @@ Gitlab::Application.routes.draw do # XXX: WIP resources :commit, only: [:show], constraints: {id: /[[:alnum:]]{6,40}/} - resources :commits, only: [:show], constraints: {id: /.+/}, as: 'history' + resources :commits, only: [:show], constraints: {id: /.+/} + resources :compare, only: [:index] resources :blame, only: [:show], constraints: {id: /.+/} resources :blob, only: [:show], constraints: {id: /.+/} - # resources :raw, only: [:show], constraints: {id: /.+/} - resources :tree, only: [:show], constraints: {id: /.+/} + resources :tree, only: [:show], constraints: {id: /.+/} match "/compare/:from...:to" => "compare#show", as: "compare", constraints: {from: /.+/, to: /.+/} - # resources :commits, only: [:show], as: 'history' do - # member do - # get :patch - # end - # end - resources :team, controller: 'team_members', only: [:index] resources :team_members resources :milestones resources :labels, only: [:index] resources :issues do - collection do post :sort post :bulk_update get :search end end + resources :notes, only: [:index, :create, :destroy] do collection do post :preview