philomena/lib/philomena_web/controllers/notification/unread_controller.ex
2020-01-10 23:20:19 -05:00

10 lines
261 B
Elixir

defmodule PhilomenaWeb.Notification.UnreadController do
use PhilomenaWeb, :controller
def index(conn, _params) do
json(conn, %{
notifications: conn.assigns.notification_count,
conversations: conn.assigns.conversation_count
})
end
end