diff options
author | Egor Kislitsyn <egor@kislitsyn.com> | 2020-05-20 15:14:11 +0400 |
---|---|---|
committer | Egor Kislitsyn <egor@kislitsyn.com> | 2020-05-20 15:15:13 +0400 |
commit | 5ba6e1c322c0937849eca53fc816f348659fb34c (patch) | |
tree | a4cd1b07029036d51a8c8fad9b57deffd4fa9b7c /lib/pleroma/web/api_spec | |
parent | f3fc8b22b1dca8d432d066417e2bb9b62a3f1520 (diff) | |
download | pleroma-5ba6e1c322c0937849eca53fc816f348659fb34c.tar.gz |
Move notification actions to PleromaAPI.NotificationController
Diffstat (limited to 'lib/pleroma/web/api_spec')
-rw-r--r-- | lib/pleroma/web/api_spec/operations/pleroma_notification_operation.ex (renamed from lib/pleroma/web/api_spec/operations/pleroma_operation.ex) | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/pleroma/web/api_spec/operations/pleroma_operation.ex b/lib/pleroma/web/api_spec/operations/pleroma_notification_operation.ex index d28451933..636c39a15 100644 --- a/lib/pleroma/web/api_spec/operations/pleroma_operation.ex +++ b/lib/pleroma/web/api_spec/operations/pleroma_notification_operation.ex @@ -2,7 +2,7 @@ # Copyright © 2017-2020 Pleroma Authors <https://pleroma.social/> # SPDX-License-Identifier: AGPL-3.0-only -defmodule Pleroma.Web.ApiSpec.PleromaOperation do +defmodule Pleroma.Web.ApiSpec.PleromaNotificationOperation do alias OpenApiSpex.Operation alias OpenApiSpex.Schema alias Pleroma.Web.ApiSpec.NotificationOperation @@ -13,7 +13,7 @@ defmodule Pleroma.Web.ApiSpec.PleromaOperation do apply(__MODULE__, operation, []) end - def mark_notifications_as_read_operation do + def mark_as_read_operation do %Operation{ tags: ["Notifications"], summary: "Mark notifications as read. Query parameters are mutually exclusive.", @@ -22,7 +22,7 @@ defmodule Pleroma.Web.ApiSpec.PleromaOperation do Operation.parameter(:max_id, :query, :string, "Read all notifications up to this id") ], security: [%{"oAuth" => ["write:notifications"]}], - operationId: "PleromaController.mark_notifications_as_read", + operationId: "PleromaAPI.NotificationController.mark_as_read", responses: %{ 200 => Operation.response( |