diff --git a/internal/route/api/v1/api.go b/internal/route/api/v1/api.go index 6f10bf9ce..8304d876b 100644 --- a/internal/route/api/v1/api.go +++ b/internal/route/api/v1/api.go @@ -282,7 +282,7 @@ func RegisterRoutes(m *macaron.Macaron) { m.Get("", repo.GetContents) m.Combo("/*"). Get(repo.GetContents). - Put(bind(repo.PutContentsRequest{}), repo.PutContents) + Put(reqRepoWriter(), bind(repo.PutContentsRequest{}), repo.PutContents) }) m.Get("/archive/*", repo.GetArchive) m.Group("/git", func() {