mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-06-24 10:00:50 +00:00
#1692 api: admin list and create team under organization
This commit is contained in:
parent
60ae8ac3d2
commit
e6f927f61a
15 changed files with 100 additions and 18 deletions
|
@ -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())
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue