mirror of
https://github.com/Monibuca/plugin-preview.git
synced 2025-09-26 19:11:14 +08:00
适配引擎升级
This commit is contained in:
4
main.go
4
main.go
@@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user