Finalize new routes
This commit is contained in:
parent
9d394250a8
commit
c058e3903e
|
@ -161,31 +161,25 @@ Gitlab::Application.routes.draw do
|
||||||
|
|
||||||
# XXX: WIP
|
# XXX: WIP
|
||||||
resources :commit, only: [:show], constraints: {id: /[[:alnum:]]{6,40}/}
|
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 :blame, only: [:show], constraints: {id: /.+/}
|
||||||
resources :blob, 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: /.+/}
|
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, controller: 'team_members', only: [:index]
|
||||||
resources :team_members
|
resources :team_members
|
||||||
resources :milestones
|
resources :milestones
|
||||||
resources :labels, only: [:index]
|
resources :labels, only: [:index]
|
||||||
resources :issues do
|
resources :issues do
|
||||||
|
|
||||||
collection do
|
collection do
|
||||||
post :sort
|
post :sort
|
||||||
post :bulk_update
|
post :bulk_update
|
||||||
get :search
|
get :search
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
resources :notes, only: [:index, :create, :destroy] do
|
resources :notes, only: [:index, :create, :destroy] do
|
||||||
collection do
|
collection do
|
||||||
post :preview
|
post :preview
|
||||||
|
|
Loading…
Reference in a new issue