forked from NYANDEV/forgejo
#1384 add pagination for repositories
This commit is contained in:
parent
1f2e173a74
commit
e74630ae3b
21 changed files with 360 additions and 192 deletions
|
@ -78,7 +78,7 @@ func Search(ctx *context.APIContext) {
|
|||
|
||||
// https://github.com/gogits/go-gogs-client/wiki/Repositories#list-your-repositories
|
||||
func ListMyRepos(ctx *context.APIContext) {
|
||||
ownRepos, err := models.GetRepositories(ctx.User.ID, true)
|
||||
ownRepos, err := models.GetUserRepositories(ctx.User.ID, true, 1, ctx.User.NumRepos)
|
||||
if err != nil {
|
||||
ctx.Error(500, "GetRepositories", err)
|
||||
return
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue