fix minor oversight

This commit is contained in:
Cyberes 2024-03-25 02:12:53 -06:00
parent cccfe6fa1a
commit ced920ceb9
1 changed files with 1 additions and 1 deletions

View File

@ -136,7 +136,7 @@ func APIList(w http.ResponseWriter, r *http.Request) {
} }
if pageParam != "" || resolveItemName != "" { if pageParam != "" || resolveItemName != "" {
response["total_pages"] = len(pages) + 1 // We add 1 to the count because arrays are zero-indexed. response["total_pages"] = len(pages) // + 1 // We add 1 to the count because arrays are zero-indexed.
} }
response["item"] = item response["item"] = item