2018-04-10 10:32:34 +00:00
|
|
|
package routes
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/gin-gonic/gin"
|
|
|
|
)
|
|
|
|
|
|
|
|
// NewServ - get new service
|
|
|
|
func NewServ() *gin.Engine {
|
|
|
|
r := gin.Default()
|
|
|
|
return r
|
|
|
|
}
|
|
|
|
|
2018-04-11 09:27:48 +00:00
|
|
|
// SetDefaultRoutes -
|
2018-04-10 10:32:34 +00:00
|
|
|
func SetDefaultRoutes(r *gin.Engine) {
|
|
|
|
r.GET("/", func(c *gin.Context) {
|
|
|
|
c.JSON(200, gin.H{
|
|
|
|
"message": "test",
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|