Commit c058e3903e01b950d19fe8ce86702f24083c8395

Authored by Robert Speicher
1 parent 9d394250

Finalize new routes

Showing 1 changed file with 4 additions and 10 deletions   Show diff stats
config/routes.rb
... ... @@ -161,31 +161,25 @@ Gitlab::Application.routes.draw do
161 161  
162 162 # XXX: WIP
163 163 resources :commit, only: [:show], constraints: {id: /[[:alnum:]]{6,40}/}
164   - resources :commits, only: [:show], constraints: {id: /.+/}, as: 'history'
  164 + resources :commits, only: [:show], constraints: {id: /.+/}
  165 + resources :compare, only: [:index]
165 166 resources :blame, only: [:show], constraints: {id: /.+/}
166 167 resources :blob, only: [:show], constraints: {id: /.+/}
167   - # resources :raw, only: [:show], constraints: {id: /.+/}
168   - resources :tree, only: [:show], constraints: {id: /.+/}
  168 + resources :tree, only: [:show], constraints: {id: /.+/}
169 169 match "/compare/:from...:to" => "compare#show", as: "compare", constraints: {from: /.+/, to: /.+/}
170 170  
171   - # resources :commits, only: [:show], as: 'history' do
172   - # member do
173   - # get :patch
174   - # end
175   - # end
176   -
177 171 resources :team, controller: 'team_members', only: [:index]
178 172 resources :team_members
179 173 resources :milestones
180 174 resources :labels, only: [:index]
181 175 resources :issues do
182   -
183 176 collection do
184 177 post :sort
185 178 post :bulk_update
186 179 get :search
187 180 end
188 181 end
  182 +
189 183 resources :notes, only: [:index, :create, :destroy] do
190 184 collection do
191 185 post :preview
... ...