api: add admin endpoint to get team members (#6101)

fixes #5877
This commit is contained in:
Rui Santos
2020-04-14 19:00:44 -03:00
committed by GitHub
parent cdafe21661
commit 440b1ecbfd
2 changed files with 15 additions and 0 deletions

View File

@@ -396,6 +396,7 @@ func RegisterRoutes(m *macaron.Macaron) {
m.Group("/teams", func() {
m.Group("/:teamid", func() {
m.Get("/members", admin.ListTeamMembers)
m.Combo("/members/:username").
Put(admin.AddTeamMember).
Delete(admin.RemoveTeamMember)