mirror of
https://github.com/go-gitea/gitea
synced 2025-07-07 19:17:21 +00:00
committed by
techknowlogick
parent
3d91bb2f2d
commit
ecefa9e724
@ -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)
|
||||
|
Reference in New Issue
Block a user