From db18731e43d2cffeca24b5ea14a37b6be19d54cb Mon Sep 17 00:00:00 2001 From: Jan Bader Date: Fri, 25 Nov 2016 17:11:02 +0100 Subject: [PATCH] Enable static files --- main.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.go b/main.go index 2b486b4..ffd0a97 100644 --- a/main.go +++ b/main.go @@ -10,10 +10,11 @@ func main() { router := gin.Default() router.LoadHTMLGlob("./templates/*") + // Middleware + router.Static("static", "static") //e.Use(middleware.Logger()) //e.Use(middleware.Recover()) - //e.Use(middleware.Static("static")) router.GET("/login.html", login) a := router.Group("/api/v1")