forked from forgejo/forgejo
API endpoint for stargazers (#597)
This commit is contained in:
parent
61306fa737
commit
1a7fc53c98
3 changed files with 32 additions and 6 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue