From 80ff1d57543d67461235a0872ec4051d02c6542f 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 Former-commit-id: 6701711c3597d13cd16f68da579ed89a711b833e [formerly 5ba71b45916adc7db79de25d5d62a173c68d4cbb] [formerly 0951e7752a9c537de37d476f488d3cfd904c1e3f [formerly 835cf2d3dc094eefa81ff371972df9d40fe58058 [formerly a62b4349ff2bbad2d47db7d24ec89f2d7f9b3c19]]] Former-commit-id: 0d412c492631d44d34ba2c60de638b2c2434e321 [formerly 63a390d0de91abe2b58b4b8d39d6f786e000724b] Former-commit-id: 9620aa062aa6ca3bf703043888b51b667943436d Former-commit-id: f3fe0d27b92c1f3c69f8725f188d0cf5c62d825f --- 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 {