1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-10 04:27:22 +00:00

API endpoint for stargazers (#597)

This commit is contained in:
Ethan Koenig
2017-01-06 02:05:09 -05:00
committed by Lunny Xiao
parent 61306fa737
commit 1a7fc53c98
3 changed files with 32 additions and 6 deletions

View File

@ -326,6 +326,7 @@ func RegisterRoutes(m *macaron.Macaron) {
Patch(reqRepoWriter(), bind(api.EditMilestoneOption{}), repo.EditMilestone).
Delete(reqRepoWriter(), repo.DeleteMilestone)
})
m.Get("/stargazers", repo.ListStargazers)
m.Group("/subscription", func() {
m.Get("", user.IsWatching)
m.Put("", user.Watch)