diff options
author | Iwan Budi Kusnanto <ibk@labhijau.net> | 2016-08-27 01:23:21 +0700 |
---|---|---|
committer | 无闻 <u@gogs.io> | 2016-08-26 11:23:21 -0700 |
commit | 8dca9f95fab909c52cd34fb401f171d22f0065ae (patch) | |
tree | 9761dbe8dc9901ca13c10109428cdf14334de545 /routers/api/v1/api.go | |
parent | f50e568fd12feda20b1a899486914881564bea12 (diff) |
issues comment API : list, create, edit (#2966)
add `since` query string support to list issue comment
Diffstat (limited to 'routers/api/v1/api.go')
-rw-r--r-- | routers/api/v1/api.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/routers/api/v1/api.go b/routers/api/v1/api.go index ffbfce89..16322fbf 100644 --- a/routers/api/v1/api.go +++ b/routers/api/v1/api.go @@ -261,6 +261,12 @@ func RegisterRoutes(m *macaron.Macaron) { m.Combo("").Get(repo.ListIssues).Post(bind(api.CreateIssueOption{}), repo.CreateIssue) m.Group("/:index", func() { m.Combo("").Get(repo.GetIssue).Patch(bind(api.EditIssueOption{}), repo.EditIssue) + + m.Group("/comments", func() { + m.Combo("").Get(repo.ListIssueComments).Post(bind(api.CreateIssueCommentOption{}), repo.CreateIssueComment) + m.Combo("/:id").Patch(bind(api.EditIssueCommentOption{}), repo.EditIssueComment) + }) + m.Group("/labels", func() { m.Combo("").Get(repo.ListIssueLabels). Post(bind(api.IssueLabelsOption{}), repo.AddIssueLabels). |