Add BlameController, remove Refs#blame action
This commit is contained in:
parent
37f0b600bc
commit
39c6579306
8 changed files with 57 additions and 27 deletions
|
@ -136,14 +136,6 @@ Gitlab::Application.routes.draw do
|
|||
id: /[a-zA-Z.0-9\/_\-]+/,
|
||||
path: /.*/
|
||||
}
|
||||
|
||||
# blame
|
||||
get "blame/:path" => "refs#blame",
|
||||
as: :blame_file,
|
||||
constraints: {
|
||||
id: /[a-zA-Z.0-9\/_\-]+/,
|
||||
path: /.*/
|
||||
}
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -204,7 +196,7 @@ Gitlab::Application.routes.draw do
|
|||
end
|
||||
|
||||
# XXX: WIP
|
||||
# resources :blame, only: [:show], constraints: {id: /.+/}
|
||||
resources :blame, only: [:show], constraints: {id: /.+/}
|
||||
# resources :blob, only: [:show], constraints: {id: /.+/}
|
||||
# resources :raw, only: [:show], constraints: {id: /.+/}
|
||||
resources :tree, only: [:show], constraints: {id: /.+/}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue