chore: add address routes
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user