Add /devices/register/ route alias for mobile clients
The KMM mobile app calls /api/notifications/devices/register/ but the Go API had /api/notifications/devices/. Added alias to support both. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -316,6 +316,7 @@ func setupNotificationRoutes(api *gin.RouterGroup, notificationHandler *handlers
|
||||
notifications.POST("/:id/read/", notificationHandler.MarkAsRead)
|
||||
|
||||
notifications.POST("/devices/", notificationHandler.RegisterDevice)
|
||||
notifications.POST("/devices/register/", notificationHandler.RegisterDevice) // Alias for mobile clients
|
||||
notifications.GET("/devices/", notificationHandler.ListDevices)
|
||||
notifications.DELETE("/devices/:id/", notificationHandler.DeleteDevice)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user