mirror of
https://github.com/gogs/gogs.git
synced 2025-12-22 16:20:14 +01:00
api: support listing repository tags (#6656)
Co-authored-by: zhouzhibo <zhouzhibo> Co-authored-by: Joe Chen <jc@unknwon.io>
This commit is contained in:
@@ -280,6 +280,7 @@ func RegisterRoutes(m *macaron.Macaron) {
|
||||
m.Get("/:sha", repo.GetRepoGitTree)
|
||||
})
|
||||
m.Get("/forks", repo.ListForks)
|
||||
m.Get("/tags", repo.ListTags)
|
||||
m.Group("/branches", func() {
|
||||
m.Get("", repo.ListBranches)
|
||||
m.Get("/*", repo.GetBranch)
|
||||
|
||||
Reference in New Issue
Block a user