move Wall to own resource
This commit is contained in:
parent
f3dfd22993
commit
57f3409bcc
7 changed files with 39 additions and 25 deletions
|
@ -167,11 +167,6 @@ Gitlab::Application.routes.draw do
|
|||
# Project Area
|
||||
#
|
||||
resources :projects, constraints: { id: /(?:[a-zA-Z.0-9_\-]+\/)?[a-zA-Z.0-9_\-]+/ }, except: [:new, :create, :index], path: "/" do
|
||||
member do
|
||||
get "wall"
|
||||
get "files"
|
||||
end
|
||||
|
||||
resources :blob, only: [:show], constraints: {id: /.+/}
|
||||
resources :tree, only: [:show, :edit, :update], constraints: {id: /.+/}
|
||||
resources :commit, only: [:show], constraints: {id: /[[:alnum:]]{6,40}/}
|
||||
|
@ -194,6 +189,12 @@ Gitlab::Application.routes.draw do
|
|||
end
|
||||
end
|
||||
|
||||
resource :wall, only: [:show] do
|
||||
member do
|
||||
get 'notes'
|
||||
end
|
||||
end
|
||||
|
||||
resource :repository do
|
||||
member do
|
||||
get "branches"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue