philomena/lib/philomena_web/controllers/notification_controller.ex

11 lines
340 B
Elixir

defmodule PhilomenaWeb.NotificationController do
use PhilomenaWeb, :controller
alias Philomena.Notifications
def index(conn, _params) do
notifications = Notifications.unread_notifications_for_user(conn.assigns.current_user, 15)
render(conn, "index.html", title: "Notification Area", notifications: notifications)
end
end