forked from forgejo/forgejo
API: support '/orgs/:org/repos' (#2047)
* API: support '/orgs/:org/repos'
This commit is contained in:
parent
f011d6d4d7
commit
6a3c03762a
4 changed files with 57 additions and 1 deletions
|
@ -458,6 +458,7 @@ func RegisterRoutes(m *macaron.Macaron) {
|
|||
m.Get("/user/orgs", reqToken(), org.ListMyOrgs)
|
||||
m.Get("/users/:username/orgs", org.ListUserOrgs)
|
||||
m.Group("/orgs/:orgname", func() {
|
||||
m.Get("/repos", user.ListOrgRepos)
|
||||
m.Combo("").Get(org.Get).
|
||||
Patch(reqToken(), reqOrgOwnership(), bind(api.EditOrgOption{}), org.Edit)
|
||||
m.Group("/members", func() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue