diff options
author | Robin Lambertz <robinlambertz+dev@gmail.com> | 2016-08-11 20:23:25 +0200 |
---|---|---|
committer | 无闻 <u@gogs.io> | 2016-08-11 11:23:25 -0700 |
commit | b6c14f8b21a277576a882061fb772a76e3d4511b (patch) | |
tree | 0a17655aca072c55e43d8b654d162a5d88adbc5c /routers/api/v1/api.go | |
parent | 5077408d78971463a94f2037d78fa68f201bda48 (diff) | |
download | gitea-b6c14f8b21a277576a882061fb772a76e3d4511b.tar.gz gitea-b6c14f8b21a277576a882061fb772a76e3d4511b.zip |
Add AddCollaborator API Endpoint (#2780)
* Add AddCollaborator API Endpoint
* Add optional Permission to AddCollaborator endpoint
* Use APIContext
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 f43afd6e06..198036207d 100644 --- a/routers/api/v1/api.go +++ b/routers/api/v1/api.go @@ -234,6 +234,7 @@ func RegisterRoutes(m *macaron.Macaron) { m.Combo("/:id").Patch(bind(api.EditHookOption{}), repo.EditHook). Delete(repo.DeleteHook) }) + m.Put("/collaborators/:collaborator", bind(api.AddCollaboratorOption{}), repo.AddCollaborator) m.Get("/raw/*", context.RepoRef(), repo.GetRawFile) m.Get("/archive/*", repo.GetArchive) m.Group("/branches", func() { |