Add new search param to paginated API response structure.

This commit is contained in:
Kailash Nadh 2025-04-18 15:33:10 +05:30
parent 29591c188a
commit 75aad8ec88
2 changed files with 2 additions and 0 deletions

View file

@ -110,6 +110,7 @@ func (a *App) QuerySubscribers(c echo.Context) error {
out := models.PageResults{
Query: query,
Search: searchStr,
Results: res,
Total: total,
Page: pg.Page,

View file

@ -123,6 +123,7 @@ var regTplFuncs = []regTplFunc{
type PageResults struct {
Results any `json:"results"`
Search string `json:"search"`
Query string `json:"query"`
Total int `json:"total"`
PerPage int `json:"per_page"`