chore: update

This commit is contained in:
2026-03-03 23:42:23 +01:00
parent 52b059fafa
commit 0073f80a48
95 changed files with 2720 additions and 40619 deletions
+9 -1
View File
@@ -157,7 +157,7 @@ func SetupRoutes(router *gin.Engine, database *db.Database, geoService *services
adminGroupV2.POST("/products", handlers.CreateProduct)
adminGroupV2.GET("/products", handlers.GetAllProducts)
adminGroupV2.GET("/products/:id", handlers.GetProductByID)
adminGroupV2.PUT("/products/update/:id", handlers.UpdateProduct)
adminGroupV2.PUT("/products/:id", handlers.UpdateProduct)
adminGroupV2.DELETE("/products/:id", handlers.DeleteProduct)
adminGroupV2.POST("/products/:id/media", handlers.UploadMedia)
adminGroupV2.DELETE("/products/:id/media/:media_id", handlers.DeleteMedia)
@@ -292,6 +292,14 @@ func SetupRoutes(router *gin.Engine, database *db.Database, geoService *services
livreurGroupV1.DELETE("/alert/:id", handlers.EndAlert) // Mettre fin à une alerte
livreurGroupV1.GET("/alerts", handlers.GetMyAlerts) // Voir mes alertes
livreurGroupV1.GET("/alert/:id", handlers.GetAlert) // Détail d'une alerte
// ============================================
// NOTIFICATIONS LIVREUR
// ============================================
livreurGroupV1.GET("/notifications", handlers.GetLivreurNotifications)
livreurGroupV1.POST("/notifications/read", handlers.MarkLivreurNotificationsRead)
livreurGroupV1.POST("/push-token", handlers.RegisterLivreurPushToken)
livreurGroupV1.DELETE("/push-token", handlers.UnregisterLivreurPushToken)
}
}