diff options
Diffstat (limited to 'routers/api/v1/repo/wiki.go')
-rw-r--r-- | routers/api/v1/repo/wiki.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/routers/api/v1/repo/wiki.go b/routers/api/v1/repo/wiki.go index f8969067be..bef32f367b 100644 --- a/routers/api/v1/repo/wiki.go +++ b/routers/api/v1/repo/wiki.go @@ -323,6 +323,7 @@ func ListWikiPages(ctx *context.APIContext) { pages = append(pages, convert.ToWikiPageMetaData(wikiName, c, ctx.Repo.Repository)) } + ctx.SetTotalCountHeader(int64(len(entries))) ctx.JSON(http.StatusOK, pages) } @@ -432,6 +433,7 @@ func ListPageRevisions(ctx *context.APIContext) { return } + ctx.SetTotalCountHeader(commitsCount) ctx.JSON(http.StatusOK, convert.ToWikiCommitList(commitsHistory, commitsCount)) } |