1
0
mirror of https://github.com/taigrr/log-socket synced 2025-01-18 04:53:14 -08:00

general refactoring

This commit is contained in:
Tai Groot 2021-04-09 10:05:59 -07:00
parent 1ea76f4ab1
commit b744f083dc
Signed by: taigrr
GPG Key ID: D00C269A87614812

View File

@ -6,7 +6,7 @@ import (
) )
func LogSocketViewHandler(w http.ResponseWriter, r *http.Request) { func LogSocketViewHandler(w http.ResponseWriter, r *http.Request) {
homeTemplate.Execute(w, "ws://"+r.Host+"/logs") homeTemplate.Execute(w, "ws://"+r.Host+r.URL.Path+"/ws")
} }
var homeTemplate = template.Must(template.New("").Parse(` var homeTemplate = template.Must(template.New("").Parse(`