mirror of
https://github.com/go-gitea/gitea.git
synced 2025-08-11 08:21:47 +00:00
refactor: add list projects get method
This commit is contained in:
parent
dd7edfbafa
commit
8358eef602
@ -1694,6 +1694,7 @@ func Routes() *web.Router {
|
|||||||
|
|
||||||
m.Group("/projects", func() {
|
m.Group("/projects", func() {
|
||||||
m.Post("", bind(api.NewProjectPayload{}), projects.CreateOrgProject)
|
m.Post("", bind(api.NewProjectPayload{}), projects.CreateOrgProject)
|
||||||
|
m.Get("", projects.ListOrgProjects)
|
||||||
})
|
})
|
||||||
}, tokenRequiresScopes(auth_model.AccessTokenScopeCategoryOrganization), orgAssignment(true), checkTokenPublicOnly())
|
}, tokenRequiresScopes(auth_model.AccessTokenScopeCategoryOrganization), orgAssignment(true), checkTokenPublicOnly())
|
||||||
m.Group("/teams/{teamid}", func() {
|
m.Group("/teams/{teamid}", func() {
|
||||||
|
Loading…
Reference in New Issue
Block a user