1
0

feat(notifications): add endpoint to mark all notifications as read

This commit is contained in:
kolaente
2023-10-20 16:40:47 +02:00
parent 66cf7ab50a
commit 10c9913e12
4 changed files with 78 additions and 0 deletions

View File

@ -535,6 +535,7 @@ func registerAPIRoutes(a *echo.Group) {
}
a.GET("/notifications", notificationHandler.ReadAllWeb)
a.POST("/notifications/:notificationid", notificationHandler.UpdateWeb)
a.POST("/notifications", apiv1.MarkAllNotificationsAsRead)
// Migrations
m := a.Group("/migration")