适配引擎升级

This commit is contained in:
dexter
2022-07-10 14:46:47 +08:00
parent 3a50bb4ce5
commit 17796ec0dd

View File

@@ -25,8 +25,8 @@ var plugin = InstallPlugin(&PreviewConfig{})
func (p *PreviewConfig) ServeHTTP(w http.ResponseWriter, r *http.Request) {
if r.URL.Path == "/preview/" {
Streams.Range(func(s *Stream) {
w.Write([]byte(fmt.Sprintf("<a href='%s'>%s</a><br>", s.Path, s.Path)))
Streams.Range(func(streamPath string, s *Stream) {
w.Write([]byte(fmt.Sprintf("<a href='%s'>%s</a><br>", streamPath, streamPath)))
})
return
}