feat: rename lists to projects
This commit is contained in:
parent
8d052687f2
commit
2f3672ee4f
|
@ -326,7 +326,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() {
|
||||
|
|
|
@ -31,7 +31,7 @@ type ProjectUserOpts struct {
|
|||
ReturnAllIfNoSearchProvided 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 ListUsers(s *xorm.Session, search string, opts *ProjectUserOpts) (users []*User, err error) {
|
||||
if opts == nil {
|
||||
opts = &ProjectUserOpts{}
|
||||
|
|
Loading…
Reference in New Issue