mirror of
https://github.com/gogs/gogs.git
synced 2025-12-22 16:20:14 +01:00
api: support put content (#7114)
Co-authored-by: Joe Chen <jc@unknwon.io>
This commit is contained in:
@@ -273,7 +273,9 @@ func RegisterRoutes(m *macaron.Macaron) {
|
||||
m.Get("/raw/*", context.RepoRef(), repo.GetRawFile)
|
||||
m.Group("/contents", func() {
|
||||
m.Get("", repo.GetContents)
|
||||
m.Get("/*", repo.GetContents)
|
||||
m.Combo("/*").
|
||||
Get(repo.GetContents).
|
||||
Put(bind(repo.PutContentsRequest{}), repo.PutContents)
|
||||
})
|
||||
m.Get("/archive/*", repo.GetArchive)
|
||||
m.Group("/git", func() {
|
||||
|
||||
Reference in New Issue
Block a user