mtgbot/router/routes/routes.go

20 lines
277 B
Go
Raw Normal View History

2018-12-24 06:34:13 +00:00
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")
})
}