mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-06-18 01:14:37 -04:00
Git-Trees API (#5403)
* Git-Trees API * update vendor'd libs * added comments to exported function and formatted. * make fmt * update per @lafirks feedback
This commit is contained in:
parent
f17524bd0c
commit
d5d847e5c4
4 changed files with 134 additions and 2 deletions
|
@ -610,6 +610,7 @@ func RegisterRoutes(m *macaron.Macaron) {
|
|||
m.Group("/git", func() {
|
||||
m.Get("/refs", repo.GetGitAllRefs)
|
||||
m.Get("/refs/*", repo.GetGitRefs)
|
||||
m.Combo("/trees/:sha", context.RepoRef()).Get(repo.GetTree)
|
||||
}, reqRepoReader(models.UnitTypeCode))
|
||||
}, repoAssignment())
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue