mirror of
https://github.com/superseriousbusiness/gotosocial
synced 2025-06-05 21:59:39 +02:00
[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:
@@ -5019,6 +5019,7 @@ paths:
|
|||||||
summary: Get notifications for currently authorized user.
|
summary: Get notifications for currently authorized user.
|
||||||
tags:
|
tags:
|
||||||
- notifications
|
- notifications
|
||||||
|
/api/v1/notifications/clear:
|
||||||
post:
|
post:
|
||||||
description: Will return an empty object `{}` to indicate success.
|
description: Will return an empty object `{}` to indicate success.
|
||||||
operationId: clearNotifications
|
operationId: clearNotifications
|
||||||
|
@@ -26,7 +26,7 @@ import (
|
|||||||
"github.com/superseriousbusiness/gotosocial/internal/oauth"
|
"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.
|
// Clear/delete all notifications for currently authorized user.
|
||||||
//
|
//
|
||||||
|
Reference in New Issue
Block a user