feat: add top items on admin page

This commit is contained in:
2026-07-07 14:50:38 +03:00
parent 0f573cbf9c
commit 3027684395
6 changed files with 98 additions and 2 deletions
+1
View File
@@ -66,6 +66,7 @@ func main() {
admin.POST("/register", handlers.RegisterAdmin)
admin.GET("/orders", handlers.GetAllOrders)
admin.PATCH("/orders/:id", handlers.UpdateOrderStatus)
admin.GET("/items/top", handlers.GetTopItems)
admin.PATCH("/items/:id/avatar", handlers.UploadItemAvatar)
admin.POST("/stock/in", handlers.StockIn)
admin.POST("/stock/out", handlers.StockOut)