aboutsummaryrefslogtreecommitdiff
path: root/web.go
diff options
context:
space:
mode:
authorUnknown <joe2010xtmf@163.com>2014-03-26 12:31:01 -0400
committerUnknown <joe2010xtmf@163.com>2014-03-26 12:31:01 -0400
commit4b9eef50c9bf91e6ca2d85d9e63dc69b0ffba737 (patch)
tree15c5fd6dd9b72ba61e306ec8b068b35d3bc19239 /web.go
parent8c2f751bbb22ebf06c7f7f9621614b6e46130210 (diff)
Add comment of issue
Diffstat (limited to 'web.go')
-rw-r--r--web.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/web.go b/web.go
index 9423c3ee..6bc55908 100644
--- a/web.go
+++ b/web.go
@@ -144,6 +144,7 @@ func runWeb(*cli.Context) {
r.Get("/action/:action", repo.Action)
r.Any("/issues/new", binding.BindIgnErr(auth.CreateIssueForm{}), repo.CreateIssue)
r.Post("/issues/:index", binding.BindIgnErr(auth.CreateIssueForm{}), repo.UpdateIssue)
+ r.Post("/comment/:action", repo.Comment)
}, reqSignIn, middleware.RepoAssignment(true))
m.Group("/:username/:reponame", func(r martini.Router) {
r.Get("/commits/:branchname", repo.Commits)