diff options
author | 6543 <6543@obermui.de> | 2021-06-17 18:04:10 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-17 18:04:10 +0200 |
commit | f7cd394680f885061144d236abc3c25f30be3147 (patch) | |
tree | b0cceab982c18db7fb48489729dc44fdff8101af /routers/api/v1/api.go | |
parent | 19dedc3fa521fdb6456bad2b080bb1aaa6722b24 (diff) | |
download | gitea-f7cd394680f885061144d236abc3c25f30be3147.tar.gz gitea-f7cd394680f885061144d236abc3c25f30be3147.zip |
[API] Add repoCreateTag (#16165)
* Add API CreateTag
* Add Test
* API: expose Tag Message
Diffstat (limited to 'routers/api/v1/api.go')
-rw-r--r-- | routers/api/v1/api.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/routers/api/v1/api.go b/routers/api/v1/api.go index 0b47953e58..34cf80e072 100644 --- a/routers/api/v1/api.go +++ b/routers/api/v1/api.go @@ -775,6 +775,7 @@ func Routes() *web.Route { }, reqToken(), reqAdmin()) m.Group("/tags", func() { m.Get("", repo.ListTags) + m.Post("", reqRepoWriter(models.UnitTypeCode), bind(api.CreateTagOption{}), repo.CreateTag) m.Delete("/{tag}", repo.DeleteTag) }, reqRepoReader(models.UnitTypeCode), context.ReferencesGitRepo(true)) m.Group("/keys", func() { |