Commit a21abce9 authored by Robert Speicher's avatar Robert Speicher

Add tree-ish route placeholders, modify commit(s) routes

parent bde50885
...@@ -182,7 +182,10 @@ Gitlab::Application.routes.draw do ...@@ -182,7 +182,10 @@ Gitlab::Application.routes.draw do
get :test get :test
end end
end end
resources :commits do
resources :commit, only: [:show], constraints: {id: /[[:alnum:]]{6,40}/}
resources :commits, only: [:index, :show] do
collection do collection do
get :compare get :compare
end end
...@@ -191,6 +194,7 @@ Gitlab::Application.routes.draw do ...@@ -191,6 +194,7 @@ Gitlab::Application.routes.draw do
get :patch get :patch
end end
end end
resources :team, controller: 'team_members', only: [:index] resources :team, controller: 'team_members', only: [:index]
resources :team_members resources :team_members
resources :milestones resources :milestones
...@@ -208,6 +212,12 @@ Gitlab::Application.routes.draw do ...@@ -208,6 +212,12 @@ Gitlab::Application.routes.draw do
post :preview post :preview
end end
end end
# XXX: WIP
# resources :blame, only: [:show], constraints: {id: /.+/}
# resources :blob, only: [:show], constraints: {id: /.+/}
# resources :raw, only: [:show], constraints: {id: /.+/}
# resources :tree, only: [:show], constraints: {id: /.+/}
end end
root to: "dashboard#index" root to: "dashboard#index"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment