Handle negative offset param in api/v2/search
(#28282)
This commit is contained in:
parent
7b1d390734
commit
c28976d89e
3 changed files with 30 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue