fix labels SSE paths

This commit is contained in:
ari melody 2026-09-03 19:30:55 +01:00
parent 28b9492cb3
commit 65e5cf97fc
Signed by: ari
GPG key ID: 60B5F0386E3DDB7E
2 changed files with 2 additions and 2 deletions

View file

@ -26,7 +26,7 @@ async function sync() {
let eventSource;
try {
eventSource = new EventSource("/twitch/sse/" + label);
eventSource = new EventSource("/twitch/sse/labels/" + label);
} catch (err) {
console.error("Failed to connect to event source", err);
return;

View file

@ -261,7 +261,7 @@ func (srv *Service) BindRoutes(group *gin.RouterGroup) {
go srv.start(ctx)
})
group.GET("/sse/label/:label", func(ctx *gin.Context) {
group.GET("/sse/labels/:label", func(ctx *gin.Context) {
ctx.Header("connection", "keep-alive")
labelParam := ctx.Param("label")