live: move connection endpoint to api scope, fixes #33861 (#33863)

This commit is contained in:
Alexander Emelin
2021-05-10 19:56:02 +03:00
committed by GitHub
parent d2676bc649
commit c610eff5cd
2 changed files with 2 additions and 2 deletions

View File

@@ -254,7 +254,7 @@ func (g *GrafanaLive) Init() error {
pushWSHandler.ServeHTTP(ctx.Resp, r)
}
g.RouteRegister.Group("/live", func(group routing.RouteRegister) {
g.RouteRegister.Group("/api/live", func(group routing.RouteRegister) {
group.Get("/ws", g.websocketHandler)
}, middleware.ReqSignedIn)

View File

@@ -54,7 +54,7 @@ export class CentrifugeSrv implements GrafanaLiveSrv {
constructor() {
// build live url replacing scheme in appUrl.
const liveUrl = `${config.appUrl.replace('http', 'ws')}live/ws`;
const liveUrl = `${config.appUrl.replace('http', 'ws')}api/live/ws`;
this.centrifuge = new Centrifuge(liveUrl, {
debug: true,
});