philomena/lib/philomena_web/controllers/notification/unread_controller.ex

11 lines
261 B
Elixir
Raw Permalink Normal View History

2019-12-02 15:55:48 +01:00
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
2020-01-11 05:20:19 +01:00
end