From a62b4349ff2bbad2d47db7d24ec89f2d7f9b3c19 Mon Sep 17 00:00:00 2001 From: Zack Scholl Date: Mon, 8 Feb 2016 10:05:14 -0500 Subject: [PATCH] Fixed folders for static --- routes.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/routes.go b/routes.go index 782f392..8f60522 100644 --- a/routes.go +++ b/routes.go @@ -1,6 +1,7 @@ package main import ( + "fmt" "html/template" "io/ioutil" "net/http" @@ -58,6 +59,7 @@ func everythingElse(c *gin.Context) { func serveStaticFile(c *gin.Context, option string) { staticFile, err := ioutil.ReadFile(path.Join(RuntimeArgs.SourcePath, "static") + option) + fmt.Println(path.Join(RuntimeArgs.SourcePath, "static")) if err != nil { c.AbortWithStatus(404) } else {