Update paginated responses to include summary data

This commit is contained in:
2025-10-08 07:59:45 -07:00
parent 1285f95ad3
commit 3db7db9624
5 changed files with 30 additions and 17 deletions

View File

@@ -3,11 +3,11 @@ class Api::V1::BaseController < ApplicationController
private
def per_page
(params[:per_page].presence || DEFAULT_PAGE_SIZE).to_i
def pagination_limit
(params[:limit].presence || DEFAULT_PAGE_SIZE).to_i
end
def page
(params[:page].presence || 1).to_i
def pagination_offset
(params[:offset].presence || 0).to_i
end
end