feat: rename lists to projects
This commit is contained in:
parent
fc73c84bf2
commit
47c2da7f18
@ -325,7 +325,7 @@ func registerAPIRoutes(a *echo.Group) {
|
||||
a.GET("/projects/:project", projectHandler.ReadOneWeb)
|
||||
a.POST("/projects/:project", projectHandler.UpdateWeb)
|
||||
a.DELETE("/projects/:project", projectHandler.DeleteWeb)
|
||||
a.PUT("/namespaces/:namespace/projects", projectHandler.CreateWeb)
|
||||
a.PUT("/projects", projectHandler.CreateWeb)
|
||||
a.GET("/projects/:project/projectusers", apiv1.ListUsersForProject)
|
||||
|
||||
if config.ServiceEnableLinkSharing.GetBool() {
|
||||
|
@ -32,7 +32,7 @@ type ProjectUserOpts struct {
|
||||
MatchFuzzily bool
|
||||
}
|
||||
|
||||
// ProjectUsers returns a project with all users, filtered by an optional search string
|
||||
// ListUsers returns a list with all users, filtered by an optional search string
|
||||
func ProjectUsers(s *xorm.Session, search string, opts *ProjectUserOpts) (users []*User, err error) {
|
||||
if opts == nil {
|
||||
opts = &ProjectUserOpts{}
|
||||
|
Loading…
x
Reference in New Issue
Block a user