Add dates view to search endpoint responses
This commit is contained in:
parent
f0e44249b7
commit
5c6865ce0d
1 changed files with 3 additions and 0 deletions
|
|
@ -85,6 +85,7 @@ module Api
|
||||||
paginated = characters.paginate(page: search_params[:page], per_page: search_page_size)
|
paginated = characters.paginate(page: search_params[:page], per_page: search_page_size)
|
||||||
|
|
||||||
render json: CharacterBlueprint.render(paginated,
|
render json: CharacterBlueprint.render(paginated,
|
||||||
|
view: :dates,
|
||||||
root: :results,
|
root: :results,
|
||||||
meta: {
|
meta: {
|
||||||
count: count,
|
count: count,
|
||||||
|
|
@ -123,6 +124,7 @@ module Api
|
||||||
paginated = weapons.paginate(page: search_params[:page], per_page: search_page_size)
|
paginated = weapons.paginate(page: search_params[:page], per_page: search_page_size)
|
||||||
|
|
||||||
render json: WeaponBlueprint.render(paginated,
|
render json: WeaponBlueprint.render(paginated,
|
||||||
|
view: :dates,
|
||||||
root: :results,
|
root: :results,
|
||||||
meta: {
|
meta: {
|
||||||
count: count,
|
count: count,
|
||||||
|
|
@ -156,6 +158,7 @@ module Api
|
||||||
paginated = summons.paginate(page: search_params[:page], per_page: search_page_size)
|
paginated = summons.paginate(page: search_params[:page], per_page: search_page_size)
|
||||||
|
|
||||||
render json: SummonBlueprint.render(paginated,
|
render json: SummonBlueprint.render(paginated,
|
||||||
|
view: :dates,
|
||||||
root: :results,
|
root: :results,
|
||||||
meta: {
|
meta: {
|
||||||
count: count,
|
count: count,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue