mirror of
https://github.com/Monibuca/plugin-preview.git
synced 2025-12-24 13:38:02 +08:00
适配引擎升级
This commit is contained in:
2
main.go
2
main.go
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user