12 lines
283 B
Go
12 lines
283 B
Go
package router
|
|
|
|
import "github.com/gin-gonic/gin"
|
|
|
|
func (r *Router) setupIMRoutes(api *gin.RouterGroup) {
|
|
imGroup := api.Group("/im")
|
|
{
|
|
imGroup.GET("/ws", r.imHandler.WebSocket)
|
|
imGroup.POST("/chat", r.imHandler.Chat)
|
|
imGroup.POST("/chat/stream", r.imHandler.ChatStream)
|
|
}
|
|
} |