mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-30 14:57:59 +01:00
10 lines
260 B
Elixir
10 lines
260 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
|