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:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user