Add GIPHY image search feature

This commit is contained in:
GHStaK
2026-03-24 16:02:49 +09:00
parent 494a54fa46
commit d63c467ef9
13 changed files with 1385 additions and 84 deletions
+3
View File
@@ -33,6 +33,7 @@ type App struct {
WorkerScript string
SearchService *services.SearchService
GeminiService *services.GeminiService
GiphyService *services.GiphyService
Hub *Hub
}
@@ -149,6 +150,8 @@ func RegisterRoutes(router *gin.Engine, app *App) {
router.POST("/api/download", app.startDownload)
router.POST("/api/translate/summary", app.translateSummary)
router.POST("/api/search", app.searchMedia)
router.POST("/api/giphy/search", app.searchGiphy)
router.POST("/api/giphy/download", app.downloadGiphy)
}
func (a *App) debug(message string, data any) {