mirror of
https://github.com/taigrr/log-socket
synced 2025-01-18 04:53:14 -08:00
general refactoring
This commit is contained in:
parent
1ea76f4ab1
commit
b744f083dc
@ -6,7 +6,7 @@ import (
|
||||
)
|
||||
|
||||
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(`
|
Loading…
x
Reference in New Issue
Block a user