add aws apis

This commit is contained in:
Jay
2019-05-02 11:51:48 +08:00
parent 463dd44989
commit 6c69e9871f
8 changed files with 126 additions and 2 deletions
+24
View File
@@ -0,0 +1,24 @@
package routes
import (
"net/http"
"github.com/gin-gonic/gin"
)
var e *gin.Engine
// NewEngine -
func NewEngine() *gin.Engine {
e = gin.New()
e.Use(gin.Logger())
e.Use(gin.Recovery())
return e
}
// SetRoutes -
func SetRoutes() {
e.GET("/", func(c *gin.Context) {
c.String(http.StatusOK, "OK")
})
}