Skip to content

Commit

Permalink
comments
Browse files Browse the repository at this point in the history
  • Loading branch information
wass3rw3rk committed Jan 14, 2025
1 parent 7d7a7a5 commit 6960074
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions api/pagination.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ func (p *Pagination) SetHeaderLink(c *gin.Context) {
l := []string{}
r := c.Request

// grab the current query params
q := r.URL.Query()

hl := HeaderLink{
Expand All @@ -48,6 +49,7 @@ func (p *Pagination) SetHeaderLink(c *gin.Context) {
q.Del("page")
q.Del("per_page")

// reset per config
q.Set("per_page", strconv.Itoa(p.PerPage))

// drop first, prev on the first page
Expand Down

0 comments on commit 6960074

Please sign in to comment.