aboutsummaryrefslogtreecommitdiff
path: root/cmd/web.go
diff options
context:
space:
mode:
authorUnknown <joe2010xtmf@163.com>2014-05-13 13:28:21 -0400
committerUnknown <joe2010xtmf@163.com>2014-05-13 13:28:21 -0400
commit2eee1e9bc22d77a68b436682fdd4eb8f60fd5d45 (patch)
tree9aa763565291f64ea4a5c72cd6fab0979fabe195 /cmd/web.go
parent98dbbae2efd5c232d94f5e4d8df9d388cace2ebc (diff)
Finish edit a milestone
Diffstat (limited to 'cmd/web.go')
-rw-r--r--cmd/web.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/cmd/web.go b/cmd/web.go
index c343566d..d2b148d7 100644
--- a/cmd/web.go
+++ b/cmd/web.go
@@ -188,7 +188,8 @@ func runWeb(*cli.Context) {
r.Get("/issues/milestones", repo.Milestones)
r.Get("/issues/milestones/new", repo.NewMilestone)
r.Post("/issues/milestones/new", bindIgnErr(auth.CreateMilestoneForm{}), repo.NewMilestonePost)
- r.Get("/issues/milestones/edit", repo.UpdateMilestones)
+ r.Get("/issues/milestones/:index/edit", repo.UpdateMilestone)
+ r.Post("/issues/milestones/:index/edit", bindIgnErr(auth.CreateMilestoneForm{}), repo.UpdateMilestonePost)
r.Post("/comment/:action", repo.Comment)
r.Get("/releases/new", repo.ReleasesNew)
}, reqSignIn, middleware.RepoAssignment(true))