change folder struct

This commit is contained in:
Jay
2018-04-11 17:27:48 +08:00
parent fdfae04892
commit 078461b8cd
2 changed files with 5 additions and 2 deletions
+20
View File
@@ -0,0 +1,20 @@
package routes
import (
"github.com/gin-gonic/gin"
)
// NewServ - get new service
func NewServ() *gin.Engine {
r := gin.Default()
return r
}
// SetDefaultRoutes -
func SetDefaultRoutes(r *gin.Engine) {
r.GET("/", func(c *gin.Context) {
c.JSON(200, gin.H{
"message": "test",
})
})
}