defmodule Pleroma.Web.MastodonAPI.NotificationController do
use Pleroma.Web, :controller
defmodule Pleroma.Web.MastodonAPI.NotificationController do
use Pleroma.Web, :controller
defdelegate open_api_operation(action), to: Pleroma.Web.ApiSpec.NotificationOperation
# GET /api/v1/notifications
defdelegate open_api_operation(action), to: Pleroma.Web.ApiSpec.NotificationOperation
# GET /api/v1/notifications
|> add_link_headers(notifications)
|> render("index.json",
notifications: notifications,
|> add_link_headers(notifications)
|> render("index.json",
notifications: notifications,