|
|
@@ -285,7 +285,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() {
|