chore: fix updates
This commit is contained in:
@@ -37,6 +37,13 @@ func SetupRoutes(router *gin.Engine, database *db.Database, geoService *services
|
||||
authGroupV1.POST("/logout", handlers.LogoutClient)
|
||||
}
|
||||
|
||||
// Route change-password (auth client requise)
|
||||
authProtectedV1 := router.Group("/api/v1/auth")
|
||||
authProtectedV1.Use(middleware.ClientMiddleware)
|
||||
{
|
||||
authProtectedV1.PUT("/change-password", handlers.ChangePassword)
|
||||
}
|
||||
|
||||
// ============================================
|
||||
// 📦 PRODUITS (v1) - PUBLIC (SANS middleware!)
|
||||
// ============================================
|
||||
@@ -84,6 +91,10 @@ func SetupRoutes(router *gin.Engine, database *db.Database, geoService *services
|
||||
// ⭐⭐ PÉNALITÉS CLIENT
|
||||
cartGroupV1.GET("/penalties", handlers.GetMyPenalties) // Voir mes pénalités
|
||||
|
||||
// 🔔 NOTIFICATIONS CLIENT
|
||||
cartGroupV1.GET("/notifications", handlers.GetClientNotifications)
|
||||
cartGroupV1.POST("/notifications/read", handlers.MarkNotificationsRead)
|
||||
|
||||
// 👤 PROFIL CLIENT - MODIFICATION PAR LE CLIENT
|
||||
cartGroupV1.PUT("/profile/update", handlers.UpdateMyProfile) // ✅ Modifier mon profil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user