1. add makefile
2. modify dockerfile
3. add config twitch.bot_user
This commit is contained in:
Jay
2018-09-20 20:35:04 +08:00
parent 116c43b0cb
commit 8a4b11f92a
6 changed files with 16 additions and 7 deletions
+1 -5
View File
@@ -43,12 +43,8 @@ func NewServ() *gin.Engine {
// SetRoutes - set routes
func SetRoutes(r *gin.Engine) {
r.NoRoute(func(c *gin.Context) {
fmt.Println("match not route")
c.String(404, "404 page not found")
})
r.GET("/", func(c *gin.Context) {
fmt.Println("in next")
c.JSON(200, gin.H{
"message": "ok",
})