mirror of
https://github.com/go-gitea/gitea
synced 2025-07-15 23:17:19 +00:00
able to download archive by API
This commit is contained in:
@@ -243,6 +243,7 @@ func runWeb(ctx *cli.Context) {
|
||||
Post(bind(api.CreateHookOption{}), v1.CreateRepoHook)
|
||||
m.Patch("/hooks/:id:int", bind(api.EditHookOption{}), v1.EditRepoHook)
|
||||
m.Get("/raw/*", middleware.RepoRef(), v1.GetRepoRawFile)
|
||||
m.Get("/archive/*", v1.GetRepoArchive)
|
||||
}, middleware.ApiRepoAssignment(), middleware.ApiReqToken())
|
||||
})
|
||||
|
||||
|
Reference in New Issue
Block a user