From 637efda810dbed6aa46783cc44f7d2c01e6ff3c0 Mon Sep 17 00:00:00 2001 From: Jan Bader Date: Sat, 3 Dec 2016 20:11:51 +0100 Subject: [PATCH] Actuall serve static files --- main.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/main.go b/main.go index ffd0a97..af6e919 100644 --- a/main.go +++ b/main.go @@ -10,9 +10,8 @@ func main() { router := gin.Default() router.LoadHTMLGlob("./templates/*") - + router.Static("/static", "./static") // Middleware - router.Static("static", "static") //e.Use(middleware.Logger()) //e.Use(middleware.Recover())