mirror of
https://github.com/taigrr/log-socket
synced 2026-04-02 05:49:08 -07:00
general refactoring
This commit is contained in:
@@ -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(`
|
||||
Reference in New Issue
Block a user