Allow to disable windows instances

This commit is contained in:
Jonathan Leibiusky @xetorthio
2017-10-02 17:19:24 -03:00
parent 56fe990285
commit f9809028da
4 changed files with 328 additions and 2 deletions

View File

@@ -4,6 +4,7 @@ import (
"net/http"
"github.com/gorilla/mux"
"github.com/play-with-docker/play-with-docker/config"
)
func Home(w http.ResponseWriter, r *http.Request) {
@@ -21,5 +22,9 @@ func Home(w http.ResponseWriter, r *http.Request) {
go core.SessionDeployStack(s)
}
http.ServeFile(w, r, "./www/index.html")
if config.NoWindows {
http.ServeFile(w, r, "./www/index-nw.html")
} else {
http.ServeFile(w, r, "./www/index.html")
}
}