Skip to content

Commit

Permalink
fix: swagger spec for DELETE /api/notification/all
Browse files Browse the repository at this point in the history
  • Loading branch information
AleksandrMatsko committed Dec 3, 2024
1 parent 0c45ef5 commit 1301e9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/handler/notification.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ func deleteNotification(writer http.ResponseWriter, request *http.Request) {
// @success 200 {object} dto.NotificationsList "Notification have been deleted"
// @failure 403 {object} api.ErrorForbiddenExample "Forbidden"
// @failure 500 {object} api.ErrorInternalServerExample "Internal server error"
// @router /notification [delete]
// @router /notification/all [delete]
func deleteAllNotifications(writer http.ResponseWriter, request *http.Request) {
if errorResponse := controller.DeleteAllNotifications(database); errorResponse != nil {
render.Render(writer, request, errorResponse) //nolint
Expand Down

0 comments on commit 1301e9b

Please sign in to comment.