Skip to content
Snippets Groups Projects
Commit 4c800342 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets
Browse files

Fix routing by priority

parent 3c1022f9
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -119,6 +119,15 @@ Gitlab::Application.routes.draw do
get "files"
end
 
resources :tree, only: [:show, :edit, :update], constraints: {id: /.+/}
resources :commit, only: [:show], constraints: {id: /[[:alnum:]]{6,40}/}
resources :commits, only: [:show], constraints: {id: /.+/}
resources :compare, only: [:index, :create]
resources :blame, only: [:show], constraints: {id: /.+/}
resources :blob, only: [:show], constraints: {id: /.+/}
match "/compare/:from...:to" => "compare#show", as: "compare",
:via => [:get, :post], constraints: {from: /.+/, to: /.+/}
resources :wikis, only: [:show, :edit, :destroy, :create] do
collection do
get :pages
Loading
Loading
@@ -190,14 +199,6 @@ Gitlab::Application.routes.draw do
end
end
 
resources :tree, only: [:show, :edit, :update], constraints: {id: /.+/}
resources :commit, only: [:show], constraints: {id: /[[:alnum:]]{6,40}/}
resources :commits, only: [:show], constraints: {id: /.+/}
resources :compare, only: [:index, :create]
resources :blame, only: [:show], constraints: {id: /.+/}
resources :blob, only: [:show], constraints: {id: /.+/}
match "/compare/:from...:to" => "compare#show", as: "compare",
:via => [:get, :post], constraints: {from: /.+/, to: /.+/}
 
resources :team, controller: 'team_members', only: [:index]
resources :milestones, except: [:destroy]
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment