chore: add corrige adresse
This commit is contained in:
@@ -79,6 +79,7 @@ func SetupRoutes(router *gin.Engine, database *db.Database, geoService *services
|
||||
cartGroupV1.GET("/commands/:id/items", handlers.GetCommandItemsWithDetails)
|
||||
// Approbation livraison
|
||||
cartGroupV1.POST("/commands/:id/approve", handlers.ApproveDelivery)
|
||||
cartGroupV1.POST("/commands/:id/address/respond", handlers.RespondToAddressProposal)
|
||||
// ⭐ NOUVEAU - HISTORIQUE DES COMMANDES TERMINÉES
|
||||
cartGroupV1.GET("/my-commands/history/detailed", handlers.GetMyCompletedOrdersWithItems)
|
||||
cartGroupV1.GET("/commands/:id/history", handlers.GetOrderHistory)
|
||||
@@ -167,8 +168,14 @@ func SetupRoutes(router *gin.Engine, database *db.Database, geoService *services
|
||||
adminGroupV2.GET("/orders", handlers.GetAllCommands)
|
||||
adminGroupV2.GET("/orders/:id", handlers.GetCommandByID)
|
||||
adminGroupV2.PUT("/orders/:id/address", handlers.UpdateCommandAddress)
|
||||
adminGroupV2.POST("/orders/:id/propose-address", handlers.ProposeAddressChange)
|
||||
adminGroupV2.PUT("/orders/:id/status", handlers.UpdateCommandStatusAdmin)
|
||||
adminGroupV2.POST("/orders/:id/force-validate", handlers.ValidateDelivery)
|
||||
adminGroupV2.POST("/orders/:id/confirm-reception", handlers.StaffApproveDelivery)
|
||||
adminGroupV2.POST("/orders/:id/notify-client", handlers.NotifyClientToDescend)
|
||||
adminGroupV2.GET("/orders/:id/items", handlers.ShowItems)
|
||||
adminGroupV2.DELETE("/orders/:id/items/:item_id", handlers.DeleteCommandItem)
|
||||
adminGroupV2.DELETE("/orders/:id", handlers.DeleteCommandByCabine)
|
||||
|
||||
// ============================================
|
||||
// ⭐ AUTO-ASSIGNATION GPS - ROUTES CRITIQUES
|
||||
@@ -237,10 +244,12 @@ func SetupRoutes(router *gin.Engine, database *db.Database, geoService *services
|
||||
cabineGroupV1.GET("/commands/:id/items", handlers.ShowItems)
|
||||
cabineGroupV1.POST("/commands/:id/confirm-reception", handlers.StaffApproveDelivery)
|
||||
cabineGroupV1.POST("/commands/:id/assign", handlers.AssignDeliveryPerson)
|
||||
cabineGroupV1.POST("/commands/:id/notify-client", handlers.NotifyClientToDescend)
|
||||
cabineGroupV1.PUT("/items/:item_id/status", handlers.UpdateItemStatus)
|
||||
cabineGroupV1.GET("/commands/:id/deliveryman/location", handlers.GetDeliverymanLocationForCommand)
|
||||
cabineGroupV1.GET("/all/deliveryman", handlers.GetAllDeliveryMen)
|
||||
cabineGroupV1.DELETE("/commands/:id", handlers.DeleteCommandByCabine)
|
||||
cabineGroupV1.POST("/commands/:id/propose-address", handlers.ProposeAddressChange)
|
||||
// ⭐ NOUVEAU - ANNULATION PAR CABINE
|
||||
cabineGroupV1.GET("/commands/cancelled", handlers.GetAllCancelledOrders)
|
||||
cabineGroupV1.GET("/client/:username/penalties", handlers.GetClientPenaltiesAdmin) // Voir pénalités client
|
||||
|
||||
Reference in New Issue
Block a user