Skip to content

Formerly KrillinAI, VideoTranslation and Dubbing Tool for 120+ Languages. Open-source AI workspace for creators, powered by Codex. Video downloader, video translation, create videos, images, audios, and edits with Agents in one place. For your Social Media like YouTube, TikTok, Instagram, etc.

feat: add router to handle head request form front

puji481082a443c36cae
diff --git a/internal/router/router.go b/internal/router/router.go
index 9c688140..dc7b1e4c 100644
--- a/internal/router/router.go
+++ b/internal/router/router.go
@@ -17,6 +17,7 @@ func SetupRouter(r *gin.Engine) {
api.GET("/capability/subtitleTask", hdl.GetSubtitleTask)
api.POST("/file", hdl.UploadFile)
api.GET("/file/*filepath", hdl.DownloadFile)
+ api.HEAD("/file/*filepath", hdl.DownloadFile)
api.GET("/config", hdl.GetConfig)
api.POST("/config", hdl.UpdateConfig)
}