适配引擎升级

This commit is contained in:
dexter
2023-04-04 20:24:39 +08:00
parent 365d49217f
commit 33b9393d59

View File

@@ -25,7 +25,7 @@ func (p *PreviewConfig) OnEvent(event any) {
var _ = InstallPlugin(&PreviewConfig{})
func (p *PreviewConfig) ServeHTTP(w http.ResponseWriter, r *http.Request) {
if r.URL.Path == "/preview/" {
if r.URL.Path == "/" {
var s string
Streams.Range(func(streamPath string, stream *Stream) {
s += fmt.Sprintf("<a href='%s'>%s</a> [ %s ]<br>", streamPath, streamPath, stream.GetType())