diff --git a/docs/api/swagger.yaml b/docs/api/swagger.yaml index fb76bd6a2..db9e0ee91 100644 --- a/docs/api/swagger.yaml +++ b/docs/api/swagger.yaml @@ -4626,6 +4626,7 @@ paths: summary: Get notifications for currently authorized user. tags: - notifications + /api/v1/notifications/clear: post: description: Will return an empty object `{}` to indicate success. operationId: clearNotifications diff --git a/internal/api/client/notifications/notificationsclear.go b/internal/api/client/notifications/notificationsclear.go index 17592f36d..705e2aab3 100644 --- a/internal/api/client/notifications/notificationsclear.go +++ b/internal/api/client/notifications/notificationsclear.go @@ -26,7 +26,7 @@ import ( "github.com/superseriousbusiness/gotosocial/internal/oauth" ) -// NotificationsClearPOSTHandler swagger:operation POST /api/v1/notifications clearNotifications +// NotificationsClearPOSTHandler swagger:operation POST /api/v1/notifications/clear clearNotifications // // Clear/delete all notifications for currently authorized user. //