forked from gitea/gitea
1
0
Fork 0

remove unused binding

This commit is contained in:
6543 2019-11-05 23:51:00 +01:00
parent 334472d426
commit 318657f990
No known key found for this signature in database
GPG Key ID: A1CA74D27FD13271
2 changed files with 2 additions and 3 deletions

View File

@ -691,7 +691,7 @@ func RegisterRoutes(m *macaron.Macaron) {
m.Post("/stop", reqToken(), repo.StopIssueStopwatch)
})
m.Group("/subscriptions", func() {
m.Get("", bind(api.User{}), repo.GetIssueSubscribers)
m.Get("", repo.GetIssueSubscribers)
m.Put("/:user", reqToken(), repo.AddIssueSubscription)
m.Delete("/:user", reqToken(), repo.DelIssueSubscription)
})

View File

@ -7,7 +7,6 @@ package repo
import (
"code.gitea.io/gitea/models"
"code.gitea.io/gitea/modules/context"
api "code.gitea.io/gitea/modules/structs"
)
// AddIssueSubscription Subscribe user to issue
@ -130,7 +129,7 @@ func setIssueSubscription(ctx *context.APIContext, watch bool) {
}
// GetIssueSubscribers return subscribers of an issue
func GetIssueSubscribers(ctx *context.APIContext, form api.User) {
func GetIssueSubscribers(ctx *context.APIContext) {
// swagger:operation GET /repos/{owner}/{repo}/issues/{index}/subscriptions issue issueSubscriptions
// ---
// summary: Get users who subscribed on an issue.