summaryrefslogtreecommitdiffstats
path: root/cmd
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2015-08-06 23:25:35 +0800
committerUnknwon <u@gogs.io>2015-08-06 23:25:35 +0800
commit9d414d4dd905840911874b879c28cb8178f6f56e (patch)
tree74813012b2bb9bee00119edda09118353af143b7 /cmd
parent952c480f4f4bedfaa8089ffb45311d63d0ab3fb4 (diff)
downloadgitea-9d414d4dd905840911874b879c28cb8178f6f56e.tar.gz
gitea-9d414d4dd905840911874b879c28cb8178f6f56e.zip
remove Index field of milestone
Diffstat (limited to 'cmd')
-rw-r--r--cmd/web.go6
1 files changed, 3 insertions, 3 deletions
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)