parent
3d91bb2f2d
commit
ecefa9e724
10 changed files with 389 additions and 11 deletions
|
@ -617,6 +617,9 @@ func RegisterRoutes(m *macaron.Macaron) {
|
|||
m.Get("/statuses", repo.GetCommitStatusesByRef)
|
||||
}, reqRepoReader(models.UnitTypeCode))
|
||||
m.Group("/git", func() {
|
||||
m.Group("/commits", func() {
|
||||
m.Get("/:sha", repo.GetSingleCommit)
|
||||
})
|
||||
m.Get("/refs", repo.GetGitAllRefs)
|
||||
m.Get("/refs/*", repo.GetGitRefs)
|
||||
m.Combo("/trees/:sha", context.RepoRef()).Get(repo.GetTree)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue