This commit is contained in:
mr
2026-03-06 10:13:47 +01:00
parent 29623244c4
commit 98fe2600b3
10 changed files with 445 additions and 29 deletions

View File

@@ -8,6 +8,7 @@
package routers
import (
"net/http"
"oc-scheduler/controllers"
beego "github.com/beego/beego/v2/server/web"
@@ -41,4 +42,7 @@ func init() {
)
beego.AddNamespace(ns)
// Route WebSocket hors du pipeline Beego pour éviter le WriteHeader parasite
beego.Handler("/oc/:id/check", http.HandlerFunc(controllers.CheckStreamHandler))
}