mirror of
https://github.com/gogs/gogs.git
synced 2025-12-22 08:09:59 +01:00
api: support getting blob content (#7080)
Co-authored-by: Joe Chen <jc@unknwon.io>
This commit is contained in:
@@ -276,8 +276,13 @@ func RegisterRoutes(m *macaron.Macaron) {
|
||||
m.Get("/*", repo.GetContents)
|
||||
})
|
||||
m.Get("/archive/*", repo.GetArchive)
|
||||
m.Group("/git/trees", func() {
|
||||
m.Get("/:sha", repo.GetRepoGitTree)
|
||||
m.Group("/git", func() {
|
||||
m.Group("/trees", func() {
|
||||
m.Get("/:sha", repo.GetRepoGitTree)
|
||||
})
|
||||
m.Group("/blobs", func() {
|
||||
m.Get("/:sha", repo.RepoGitBlob)
|
||||
})
|
||||
})
|
||||
m.Get("/forks", repo.ListForks)
|
||||
m.Get("/tags", repo.ListTags)
|
||||
|
||||
Reference in New Issue
Block a user