Skip to content

Commit 1faa7e8

Browse files
committed
Merge branch 'feat/api-projects' of github.com:dineshsalunke/gitea into dineshsalunke-feat/api-projects
2 parents 9c4937f + c29a6b7 commit 1faa7e8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

routers/api/v1/api.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1609,7 +1609,7 @@ func Routes() *web.Router {
16091609
Patch(reqToken(), reqRepoWriter(unit.TypeIssues, unit.TypePullRequests), bind(api.EditMilestoneOption{}), repo.EditMilestone).
16101610
Delete(reqToken(), reqRepoWriter(unit.TypeIssues, unit.TypePullRequests), repo.DeleteMilestone)
16111611
})
1612-
}, repoAssignment())
1612+
}, repoAssignment(), checkTokenPublicOnly())
16131613
}, tokenRequiresScopes(auth_model.AccessTokenScopeCategoryIssue))
16141614

16151615
// NOTE: these are Gitea package management API - see packages.CommonRoutes and packages.DockerContainerRoutes for endpoints that implement package manager APIs
@@ -1700,6 +1700,7 @@ func Routes() *web.Router {
17001700

17011701
m.Group("/projects", func() {
17021702
m.Post("", bind(api.NewProjectOption{}), projects.CreateOrgProject)
1703+
m.Get("", projects.ListOrgProjects)
17031704
})
17041705
}, tokenRequiresScopes(auth_model.AccessTokenScopeCategoryOrganization), orgAssignment(true), checkTokenPublicOnly())
17051706
m.Group("/teams/{teamid}", func() {

0 commit comments

Comments
 (0)