mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-12-18 15:08:00 +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
|