feat 添加风格支持及首页

This commit is contained in:
zuoban
2024-10-18 21:06:38 +08:00
parent d7280f7fbb
commit 62883ccb99
5 changed files with 194 additions and 35 deletions

View File

@@ -1,8 +1,9 @@
package routes
import (
"github.com/gin-gonic/gin"
"tts/handlers"
"github.com/gin-gonic/gin"
)
func SetupRouter() *gin.Engine {
@@ -14,7 +15,9 @@ func SetupRouter() *gin.Engine {
router.GET("/voices", handlers.GetVoiceList)
router.POST("/tts", handlers.SynthesizeVoicePost)
router.GET("/tts", handlers.SynthesizeVoice)
router.GET("/v1/audio/speech", handlers.SynthesizeVoiceOpenAI)
router.GET("/", handlers.Index)
router.GET("/doc", handlers.ApiDoc)
return router
}