Add Makefile

Signed-off-by: Antonio Navarro Perez <antnavper@gmail.com>
This commit is contained in:
Antonio Navarro Perez 2020-07-27 12:19:35 +02:00
parent b9bb9a8fe0
commit 18b0d52b3f
4 changed files with 65 additions and 3 deletions
cmd/distribyted

View file

@ -99,6 +99,8 @@ func main() {
}
}
gin.SetMode(gin.ReleaseMode)
r := gin.New()
r.Use(ginlogrus.Logger(log), gin.Recovery())
@ -112,8 +114,6 @@ func main() {
r.SetHTMLTemplate(t)
// r.LoadHTMLGlob("templates/*")
r.GET("/", func(c *gin.Context) {
c.HTML(http.StatusOK, "index.html", nil)
})