mirror of
https://github.com/truewhile/MeBox.git
synced 2026-10-01 20:16:36 +08:00
refactor: split modules and harden scraping workflows
This commit is contained in:
@@ -26,6 +26,7 @@ func trendingHandler(svc *service.Container) gin.HandlerFunc {
|
||||
if items == nil {
|
||||
items = []service.Match{}
|
||||
}
|
||||
svc.Discover.WarmMatchArtwork(items)
|
||||
c.JSON(http.StatusOK, gin.H{"items": items})
|
||||
}
|
||||
}
|
||||
@@ -41,6 +42,7 @@ func popularHandler(svc *service.Container) gin.HandlerFunc {
|
||||
if items == nil {
|
||||
items = []service.Match{}
|
||||
}
|
||||
svc.Discover.WarmMatchArtwork(items)
|
||||
c.JSON(http.StatusOK, gin.H{"items": items})
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user