diff options
author | 6543 <6543@obermui.de> | 2020-01-31 16:49:04 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-31 15:49:04 +0000 |
commit | 13bc82009c2def4e729f11340e74a14d6c6b32e8 (patch) | |
tree | b545d0af8fdebbddb79fee55b8e643c9f392ff49 /routers/api/v1/api.go | |
parent | d816f7018b0726f868fa0cddf02ffae184601395 (diff) | |
download | gitea-13bc82009c2def4e729f11340e74a14d6c6b32e8.tar.gz gitea-13bc82009c2def4e729f11340e74a14d6c6b32e8.zip |
API endpoint for repo transfer (#9947)
* squash
* optimize
* fail before make any changes
* fix-header
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 4c9f9dd03e..0a352f6e46 100644 --- a/routers/api/v1/api.go +++ b/routers/api/v1/api.go @@ -620,6 +620,7 @@ func RegisterRoutes(m *macaron.Macaron) { m.Combo("").Get(reqAnyRepoReader(), repo.Get). Delete(reqToken(), reqOwner(), repo.Delete). Patch(reqToken(), reqAdmin(), bind(api.EditRepoOption{}), context.RepoRef(), repo.Edit) + m.Post("/transfer", reqOwner(), bind(api.TransferRepoOption{}), repo.Transfer) m.Combo("/notifications"). Get(reqToken(), notify.ListRepoNotifications). Put(reqToken(), notify.ReadRepoNotifications) |