1
0
Fork 0
forked from forgejo/forgejo

API: support '/orgs/:org/repos' (#2047)

* API: support '/orgs/:org/repos'
This commit is contained in:
Aaron Walker 2017-07-13 04:14:15 -07:00 committed by Kim "BKC" Carlbäcker
parent f011d6d4d7
commit 6a3c03762a
4 changed files with 57 additions and 1 deletions

View file

@ -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() {