1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-07 19:17:21 +00:00

Add an api endpoint to fetch git notes (#15373) (#16649)

close #15373
This commit is contained in:
nitul1991
2021-08-11 06:31:40 +05:30
committed by GitHub
parent c4d70a0325
commit 2d25b7d44b
12 changed files with 228 additions and 1 deletions

View File

@ -953,6 +953,7 @@ func Routes() *web.Route {
m.Get("/trees/{sha}", context.RepoRefForAPI, repo.GetTree)
m.Get("/blobs/{sha}", context.RepoRefForAPI, repo.GetBlob)
m.Get("/tags/{sha}", context.RepoRefForAPI, repo.GetAnnotatedTag)
m.Get("/notes/{sha}", repo.GetNote)
}, reqRepoReader(models.UnitTypeCode))
m.Group("/contents", func() {
m.Get("", repo.GetContentsList)