This commit is contained in:
Jay 2018-04-13 17:16:21 +08:00
parent 5484da1212
commit e8bec78493
1 changed files with 10 additions and 0 deletions

View File

@ -26,4 +26,14 @@ func SetDefaultRoutes(r *gin.Engine) {
fmt.Println(accs)
c.JSON(200, accs)
})
api := r.Group("/api")
{
api.GET("/", func(c *gin.Context) {
c.JSON(200, gin.H{
"status": 200,
"message": "Success",
})
})
}
}