15 lines
312 B
Go
15 lines
312 B
Go
package router
|
|
|
|
import (
|
|
"github.com/gin-gonic/gin"
|
|
"kra/internal/server/handler"
|
|
)
|
|
|
|
func RegisterChannel(private *gin.RouterGroup, h *handler.Channel) {
|
|
g := private.Group("/sw/promote")
|
|
g.GET("/list", h.List)
|
|
g.GET("/bindOptions", h.Bindings)
|
|
g.GET("/game-distribution", h.Games)
|
|
g.POST("", h.Create)
|
|
}
|