chore: fix updates

This commit is contained in:
2026-03-01 17:30:08 +01:00
parent 2fad63c28d
commit bb8dee3406
9 changed files with 226 additions and 19 deletions
+11
View File
@@ -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
}