mirror of
https://github.com/go-gitea/gitea
synced 2025-07-09 20:17:21 +00:00
Delete tag API (#13358)
* Delete tag API Signed-off-by: jolheiser <john.olheiser@gmail.com> * Wording Signed-off-by: jolheiser <john.olheiser@gmail.com> * Add conflict response and fix API tests Signed-off-by: jolheiser <john.olheiser@gmail.com> * Fix other test Signed-off-by: jolheiser <john.olheiser@gmail.com> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
This commit is contained in:
@ -798,7 +798,9 @@ func RegisterRoutes(m *macaron.Macaron) {
|
||||
})
|
||||
})
|
||||
m.Group("/tags", func() {
|
||||
m.Get("/:tag", repo.GetReleaseTag)
|
||||
m.Combo("/:tag").
|
||||
Get(repo.GetReleaseTag).
|
||||
Delete(reqToken(), reqRepoWriter(models.UnitTypeReleases), repo.DeleteReleaseTag)
|
||||
})
|
||||
}, reqRepoReader(models.UnitTypeReleases))
|
||||
m.Post("/mirror-sync", reqToken(), reqRepoWriter(models.UnitTypeCode), repo.MirrorSync)
|
||||
|
Reference in New Issue
Block a user