feat: main.go 接入 ConversationHandler 路由注册
This commit is contained in:
@@ -140,6 +140,10 @@ func main() {
|
|||||||
authHandler := api.NewAuthHandler(authService, tokenMgr)
|
authHandler := api.NewAuthHandler(authService, tokenMgr)
|
||||||
authHandler.RegisterRoutes(apiGroup)
|
authHandler.RegisterRoutes(apiGroup)
|
||||||
|
|
||||||
|
// Conversation REST 端点
|
||||||
|
convHandler := api.NewConversationHandler(sessionMgr, tokenMgr)
|
||||||
|
convHandler.RegisterRoutes(apiGroup)
|
||||||
|
|
||||||
// WebSocket
|
// WebSocket
|
||||||
r.GET("/ws", ws.ServeWS(sessionMgr, orch, cfg))
|
r.GET("/ws", ws.ServeWS(sessionMgr, orch, cfg))
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user