add total back to search api

This commit is contained in:
byte[] 2019-12-08 10:03:29 -05:00
parent ef0eee0105
commit f8aa0a68df

View file

@ -21,6 +21,7 @@ defmodule PhilomenaWeb.Api.Json.SearchController do
conn
|> json(%{
images: Enum.map(images, &ImageJson.as_json(conn, &1)),
total: images.total_entries,
interactions: interactions
})