min-report/cmd/route.go

14 lines
275 B
Go

package cmd
import (
"github.com/gin-gonic/gin"
"github.com/huoxue1/min-report/handler"
"github.com/huoxue1/min-report/utils"
)
func server() *gin.Engine {
engine := gin.Default()
engine.POST("/v1/api/report", utils.CreateHandlerFunc(handler.Report))
return engine
}