mirror of
https://github.com/go-gitea/gitea.git
synced 2025-08-02 08:56:24 +00:00
Merge branch 'feat/api-projects' of github.com:dineshsalunke/gitea into dineshsalunke-feat/api-projects
This commit is contained in:
commit
1faa7e82e3
@ -1609,7 +1609,7 @@ func Routes() *web.Router {
|
||||
Patch(reqToken(), reqRepoWriter(unit.TypeIssues, unit.TypePullRequests), bind(api.EditMilestoneOption{}), repo.EditMilestone).
|
||||
Delete(reqToken(), reqRepoWriter(unit.TypeIssues, unit.TypePullRequests), repo.DeleteMilestone)
|
||||
})
|
||||
}, repoAssignment())
|
||||
}, repoAssignment(), checkTokenPublicOnly())
|
||||
}, tokenRequiresScopes(auth_model.AccessTokenScopeCategoryIssue))
|
||||
|
||||
// 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 {
|
||||
|
||||
m.Group("/projects", func() {
|
||||
m.Post("", bind(api.NewProjectOption{}), projects.CreateOrgProject)
|
||||
m.Get("", projects.ListOrgProjects)
|
||||
})
|
||||
}, tokenRequiresScopes(auth_model.AccessTokenScopeCategoryOrganization), orgAssignment(true), checkTokenPublicOnly())
|
||||
m.Group("/teams/{teamid}", func() {
|
||||
|
Loading…
Reference in New Issue
Block a user