Files
play-with-docker/handlers/home.go
Jonathan Leibiusky @xetorthio 3d96760a98 WIP
2017-05-23 19:29:36 -03:00

19 lines
307 B
Go

package handlers
import (
"net/http"
"github.com/gorilla/mux"
)
func Home(w http.ResponseWriter, r *http.Request) {
vars := mux.Vars(r)
sessionId := vars["sessionId"]
s := core.SessionGet(sessionId)
if s.Stack != "" {
go core.SessionDeployStack(s)
}
http.ServeFile(w, r, "./www/index.html")
}