From 57ed35552f5fba565faf24717221545e8b9b4b8b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miroslav=20=C5=A0ediv=C3=BD?= Date: Fri, 29 Jan 2021 23:02:29 +0100 Subject: [PATCH] websocket in api scope. --- internal/http/manager.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/http/manager.go b/internal/http/manager.go index 3883507a..da8b3cff 100644 --- a/internal/http/manager.go +++ b/internal/http/manager.go @@ -43,7 +43,7 @@ func New(WebSocketManager types.WebSocketManager, ApiManager types.ApiManager, c router.Route("/api", ApiManager.Route) - router.Get("/ws", func(w http.ResponseWriter, r *http.Request) { + router.Get("/api/ws", func(w http.ResponseWriter, r *http.Request) { //nolint WebSocketManager.Upgrade(w, r, func(r *http.Request) bool { return conf.AllowOrigin(r.Header.Get("Origin"))