From 74bd6b939c725e6e9c7395fe6356e9a6d7d662e6 Mon Sep 17 00:00:00 2001 From: Unknwon Date: Wed, 5 Aug 2015 18:26:18 +0800 Subject: milestone: edit --- cmd/web.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cmd/web.go') diff --git a/cmd/web.go b/cmd/web.go index 7b67388c..283b05eb 100644 --- a/cmd/web.go +++ b/cmd/web.go @@ -427,8 +427,8 @@ func runWeb(ctx *cli.Context) { m.Group("/milestones", func() { m.Get("/new", repo.NewMilestone) m.Post("/new", bindIgnErr(auth.CreateMilestoneForm{}), repo.NewMilestonePost) - m.Get("/:index/edit", repo.MilestoneActions) - m.Post("/:index/edit", bindIgnErr(auth.CreateMilestoneForm{}), repo.UpdateMilestonePost) + m.Get("/:index/edit", repo.EditMilestone) + m.Post("/:index/edit", bindIgnErr(auth.CreateMilestoneForm{}), repo.EditMilestonePost) m.Get("/:index/:action", repo.MilestoneActions) }, reqRepoAdmin) -- cgit v1.2.3