commit e0962987aa4b4b06b467e556b56925019b944407
parent fc524f8cf16761f949303a96bca14e63c46ceda8
Author: Daenney <daenney@users.noreply.github.com>
Date: Thu, 25 May 2023 16:56:33 +0200
[bugfix/docs] Fix clear notifications API docs (#1831)
The handler is already hooked to the right path, it's just the docs that
were missing the path.
Diffstat:
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/docs/api/swagger.yaml b/docs/api/swagger.yaml
@@ -5019,6 +5019,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
@@ -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.
//