mirror of
1
Fork 0

[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.
This commit is contained in:
Daenney 2023-05-25 16:56:33 +02:00 committed by tsmethurst
parent a206230934
commit 238a607bb0
2 changed files with 2 additions and 1 deletions

View File

@ -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

View File

@ -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.
//