0
0
Fork 0

Handle negative offset param in api/v2/search (#28282)

This commit is contained in:
Matt Jankowski 2023-12-19 05:55:39 -05:00 committed by GitHub
parent 7b1d390734
commit c28976d89e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 30 additions and 1 deletions

View file

@ -12,6 +12,7 @@ class Api::V2::SearchController < Api::BaseController
before_action :query_pagination_error, if: :pagination_requested?
before_action :remote_resolve_error, if: :remote_resolve_requested?
end
before_action :require_valid_pagination_options!
def index
@search = Search.new(search_results)