From 5aa2bf86f4cb9b3c6c472a3f8f1db10331f27c65 Mon Sep 17 00:00:00 2001 From: Unknwon Date: Sun, 17 Jul 2016 09:25:30 +0800 Subject: Update locales and .gopmfile --- routers/api/v1/api.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'routers/api') diff --git a/routers/api/v1/api.go b/routers/api/v1/api.go index f60bb58bd4..4fac550e82 100644 --- a/routers/api/v1/api.go +++ b/routers/api/v1/api.go @@ -224,7 +224,7 @@ func RegisterRoutes(m *macaron.Macaron) { m.Group("/hooks", func() { m.Combo("").Get(repo.ListHooks). Post(bind(api.CreateHookOption{}), repo.CreateHook) - m.Combo("/:id:int").Patch(bind(api.EditHookOption{}), repo.EditHook). + m.Combo("/:id").Patch(bind(api.EditHookOption{}), repo.EditHook). Delete(repo.DeleteHook) }) m.Get("/raw/*", context.RepoRef(), repo.GetRawFile) -- cgit v1.2.3