chore: add address routes

This commit is contained in:
2026-02-24 20:52:44 +01:00
parent a87e9a1441
commit b05f844940
5 changed files with 91 additions and 1 deletions
+6
View File
@@ -106,6 +106,7 @@ func SetupRoutes(router *gin.Engine, database *db.Database, geoService *services
// ============================================
adminAuthGroupV2 := router.Group("/api/v2/admin/auth")
{
adminAuthGroupV2.POST("/register", handlers.RegisterAdmin)
adminAuthGroupV2.POST("/login", handlers.LoginAdmin)
adminAuthGroupV2.POST("/logout", handlers.LogoutAdmin)
}
@@ -130,6 +131,11 @@ func SetupRoutes(router *gin.Engine, database *db.Database, geoService *services
// Get location livreur
adminGroupV2.GET("/commands/:id/deliveryman/location", handlers.GetDeliverymanLocationForCommand)
// ============================================
// ADDRESSES - GESTION
// ============================================
adminGroupV2.POST("/add/address", handlers.AddAddress)
adminGroupV2.DELETE("/delete/address", handlers.DeleteAddress)
// ============================================
// PRODUITS - GESTION
// ============================================
adminGroupV2.POST("/products", handlers.CreateProduct)