Open platform to collect and prioritize feedback
fix tests
goenning8cb89a5d87fd
diff --git a/handlers/router.go b/handlers/router.goindex 080e27b66..60fdab583 100644--- a/handlers/router.go+++ b/handlers/router.go@@ -2,6 +2,8 @@ package handlersimport ("net/http"+ "os"+ "path/filepath""strings""github.com/WeCanHearYou/wchy/context"@@ -38,7 +40,7 @@ func GetMainEngine(ctx context.WchyContext) *gin.Engine {router := gin.New()router.Use(gin.Logger())router.Use(multiTenant(ctx))- router.LoadHTMLGlob("views/*")+ router.LoadHTMLGlob(filepath.Join(os.Getenv("GOPATH"), "src/github.com/WeCanHearYou/wchy/views/*"))router.GET("/", func(c *gin.Context) {c.HTML(http.StatusOK, "index.tmpl", gin.H{diff --git a/vendor/vendor.json b/vendor/vendor.jsonindex 19c782abe..e1f79a497 100644--- a/vendor/vendor.json+++ b/vendor/vendor.json@@ -356,5 +356,5 @@"revisionTime": "2016-09-28T15:37:09Z"}],- "rootPath": "github.com/WeCanHearYou/wchy-api"+ "rootPath": "github.com/WeCanHearYou/wchy"}