mirror of
https://github.com/philomena-dev/philomena.git
synced 2025-01-20 06:37:59 +01:00
add total back to search api
This commit is contained in:
parent
ef0eee0105
commit
f8aa0a68df
1 changed files with 1 additions and 0 deletions
|
@ -21,6 +21,7 @@ defmodule PhilomenaWeb.Api.Json.SearchController do
|
||||||
conn
|
conn
|
||||||
|> json(%{
|
|> json(%{
|
||||||
images: Enum.map(images, &ImageJson.as_json(conn, &1)),
|
images: Enum.map(images, &ImageJson.as_json(conn, &1)),
|
||||||
|
total: images.total_entries,
|
||||||
interactions: interactions
|
interactions: interactions
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue