forked from gitea/gitea
remove unused binding
This commit is contained in:
parent
334472d426
commit
318657f990
|
@ -691,7 +691,7 @@ func RegisterRoutes(m *macaron.Macaron) {
|
||||||
m.Post("/stop", reqToken(), repo.StopIssueStopwatch)
|
m.Post("/stop", reqToken(), repo.StopIssueStopwatch)
|
||||||
})
|
})
|
||||||
m.Group("/subscriptions", func() {
|
m.Group("/subscriptions", func() {
|
||||||
m.Get("", bind(api.User{}), repo.GetIssueSubscribers)
|
m.Get("", repo.GetIssueSubscribers)
|
||||||
m.Put("/:user", reqToken(), repo.AddIssueSubscription)
|
m.Put("/:user", reqToken(), repo.AddIssueSubscription)
|
||||||
m.Delete("/:user", reqToken(), repo.DelIssueSubscription)
|
m.Delete("/:user", reqToken(), repo.DelIssueSubscription)
|
||||||
})
|
})
|
||||||
|
|
|
@ -7,7 +7,6 @@ package repo
|
||||||
import (
|
import (
|
||||||
"code.gitea.io/gitea/models"
|
"code.gitea.io/gitea/models"
|
||||||
"code.gitea.io/gitea/modules/context"
|
"code.gitea.io/gitea/modules/context"
|
||||||
api "code.gitea.io/gitea/modules/structs"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
// AddIssueSubscription Subscribe user to issue
|
// AddIssueSubscription Subscribe user to issue
|
||||||
|
@ -130,7 +129,7 @@ func setIssueSubscription(ctx *context.APIContext, watch bool) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// GetIssueSubscribers return subscribers of an issue
|
// 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
|
// swagger:operation GET /repos/{owner}/{repo}/issues/{index}/subscriptions issue issueSubscriptions
|
||||||
// ---
|
// ---
|
||||||
// summary: Get users who subscribed on an issue.
|
// summary: Get users who subscribed on an issue.
|
||||||
|
|
Loading…
Reference in New Issue