From 9d414d4dd905840911874b879c28cb8178f6f56e Mon Sep 17 00:00:00 2001 From: Unknwon Date: Thu, 6 Aug 2015 23:25:35 +0800 Subject: remove Index field of milestone --- cmd/web.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'cmd') diff --git a/cmd/web.go b/cmd/web.go index 80b4feac14..9e35698a4d 100644 --- a/cmd/web.go +++ b/cmd/web.go @@ -435,9 +435,9 @@ 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.EditMilestone) - m.Post("/:index/edit", bindIgnErr(auth.CreateMilestoneForm{}), repo.EditMilestonePost) - m.Get("/:index/:action", repo.ChangeMilestonStatus) + m.Get("/:id/edit", repo.EditMilestone) + m.Post("/:id/edit", bindIgnErr(auth.CreateMilestoneForm{}), repo.EditMilestonePost) + m.Get("/:id/:action", repo.ChangeMilestonStatus) m.Post("/delete", repo.DeleteMilestone) }, reqRepoAdmin) -- cgit v1.2.3