Refactor Notification Routes for Improved Endpoint Structure

- Updated the notification routes to enhance clarity and usability by changing the endpoint for marking notifications as seen.
- Introduced a new route for marking all notifications as seen, improving the API's functionality and user experience.
- Updated Swagger documentation to reflect the changes in endpoint paths, ensuring accurate API documentation for consumers.
This commit is contained in:
n.nakhostin
2025-09-23 10:33:17 +03:30
parent c2531a005e
commit e1ae090ff9
2 changed files with 4 additions and 3 deletions
+2 -1
View File
@@ -218,6 +218,7 @@ func RegisterPublicRoutes(e *echo.Echo, customerHandler *customer.Handler, tende
notificationsGP.Use(customerHandler.AuthMiddleware())
notificationsGP.GET("", notificationHandler.CustomerNotifications)
notificationsGP.GET("/view/:id", notificationHandler.PublicViewNotification)
notificationsGP.GET("mark-seen/:id", notificationHandler.PublicMarkSeen)
notificationsGP.GET("mark", notificationHandler.PublicAllMarkSeen)
notificationsGP.GET("mark/:id", notificationHandler.PublicMarkSeen)
}
}