feat: add stats page for admin

This commit is contained in:
2026-05-10 15:39:26 +02:00
parent a081fd3b4d
commit 3c16ca015d
6 changed files with 527 additions and 0 deletions
+5
View File
@@ -194,6 +194,11 @@ func SetupRoutes(router *gin.Engine, database *db.Database, geoService *services
adminGroupV2.POST("/categories", handlers.CreateCategory)
adminGroupV2.PUT("/categories/:id", handlers.UpdateCategory)
adminGroupV2.DELETE("/categories/:id", handlers.DeleteCategory)
// ============================================
// STATISTIQUES ADMIN
// ============================================
adminGroupV2.GET("/stats", handlers.GetAdminStats)
// ============================================
// COMMANDES - GESTION DE BASE
// ============================================