Añade el plugin Redmine Git Server 0.4
This commit is contained in:
parent
525527a55b
commit
4b46a7472e
30 changed files with 485 additions and 0 deletions
15
plugins/redmine_git_server/config/routes.rb
Normal file
15
plugins/redmine_git_server/config/routes.rb
Normal file
|
@ -0,0 +1,15 @@
|
|||
|
||||
Grack::App::ROUTES.each do |grack_route|
|
||||
regex = grack_route[0]
|
||||
method = grack_route[1].downcase.to_sym
|
||||
action = grack_route[2]
|
||||
match 'projects/:id/repository/:repository_id/*path',
|
||||
controller: 'git_server',
|
||||
action: action,
|
||||
via: method,
|
||||
format: false,
|
||||
constraints: -> (request) {
|
||||
regex.match(request.path)
|
||||
}
|
||||
end
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue