Add segment integration

This commit is contained in:
marcos
2017-12-01 17:37:20 -03:00
parent 2ef157f4cf
commit efaa37e0ad
5 changed files with 69 additions and 5 deletions

View File

@@ -46,10 +46,6 @@ func Landing(rw http.ResponseWriter, req *http.Request) {
return
}
index := filepath.Join("./www", playground.AssetsDir, "/landing.html")
if _, err := os.Stat(index); os.IsNotExist(err) {
index = "./www/default/landing.html"
}
rw.Write(landings[playground.Id])
http.ServeFile(rw, req, index)
}