12 lines
302 B
Go
12 lines
302 B
Go
package router
|
|
|
|
import "github.com/gin-gonic/gin"
|
|
|
|
// setupChatAPIRoutes 配置聊天相关 API 路由
|
|
func (r *Router) setupChatAPIRoutes(api *gin.RouterGroup) {
|
|
chatGroup := api.Group("/chat")
|
|
{
|
|
chatGroup.POST("", r.chatHandler.Chat)
|
|
chatGroup.GET("/history", r.chatHandler.GetChatHistory)
|
|
}
|
|
} |