mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-12-22 17:07:59 +01:00
10 lines
261 B
Elixir
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
|