From f8aa0a68df3e598d19d84b6009471382c5cafc1f Mon Sep 17 00:00:00 2001 From: "byte[]" Date: Sun, 8 Dec 2019 10:03:29 -0500 Subject: [PATCH] add total back to search api --- lib/philomena_web/controllers/api/json/search_controller.ex | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/philomena_web/controllers/api/json/search_controller.ex b/lib/philomena_web/controllers/api/json/search_controller.ex index 12c44fe9..66d998c3 100644 --- a/lib/philomena_web/controllers/api/json/search_controller.ex +++ b/lib/philomena_web/controllers/api/json/search_controller.ex @@ -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 })