Merge pull request '添加计时器,麦克风,摄像头开关' (#45) from develop-frontend8 into develop 33分钟前 #46
@@ -10,6 +10,7 @@ import (
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
|
||||
"github.com/hhs/camtalk/internal/api"
|
||||
"github.com/hhs/camtalk/internal/ai/llm"
|
||||
"github.com/hhs/camtalk/internal/ai/stt"
|
||||
"github.com/hhs/camtalk/internal/ai/tts"
|
||||
@@ -61,11 +62,15 @@ func main() {
|
||||
r.Use(gin.Recovery())
|
||||
|
||||
// REST API
|
||||
api := r.Group("/api")
|
||||
apiGroup := r.Group("/api")
|
||||
{
|
||||
api.GET("/health", healthHandler(sessionMgr))
|
||||
apiGroup.GET("/health", healthHandler(sessionMgr))
|
||||
}
|
||||
|
||||
// Session REST 端点
|
||||
sessionHandler := api.NewSessionHandler(sessionMgr)
|
||||
sessionHandler.RegisterRoutes(apiGroup)
|
||||
|
||||
// WebSocket
|
||||
r.GET("/ws", ws.ServeWS(sessionMgr, orch))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user