diff options
author | Unknwon <u@gogs.io> | 2016-03-21 12:47:54 -0400 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2016-03-21 12:47:54 -0400 |
commit | e6f927f61af927156798390e64f17dd6755697e7 (patch) | |
tree | c97f90dfb0f4ae96534c13f98352907fb42d177b /routers/api/v1/api.go | |
parent | 60ae8ac3d2995d46156ead8ad93004801daad4ce (diff) |
#1692 api: admin list and create team under organization
Diffstat (limited to 'routers/api/v1/api.go')
-rw-r--r-- | routers/api/v1/api.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/routers/api/v1/api.go b/routers/api/v1/api.go index 59625efd..744289ac 100644 --- a/routers/api/v1/api.go +++ b/routers/api/v1/api.go @@ -223,6 +223,10 @@ func RegisterRoutes(m *macaron.Macaron) { m.Post("/repos", bind(api.CreateRepoOption{}), admin.CreateRepo) }) }) + + m.Group("/orgs/:orgname", func() { + m.Combo("/teams").Get(admin.ListTeams).Post(bind(api.CreateTeamOption{}), admin.CreateTeam) + }) }, ReqAdmin()) }, context.APIContexter()) } |