mtgbot/router/routes/routes.go
2018-12-24 14:34:13 +08:00

20 lines
277 B
Go

package routes
import "github.com/gin-gonic/gin"
var r *gin.Engine
// NewEngine - new gin engine
func NewEngine() *gin.Engine {
r = gin.Default()
return r
}
// SetRoutes -
func SetRoutes(r *gin.Engine) {
r.GET("/", func(c *gin.Context) {
c.String(200, "Hello")
})
}