e2e: integration harness (69/69 green) + fix /agent/ws missing bearer auth (BUG-1)
This commit is contained in:
+1
-1
@@ -49,7 +49,7 @@ func NewServer(store *Store, hub *Hub, spawn *Spawner, gl *GitLab) *Server {
|
||||
func (s *Server) Routes(webdist string) http.Handler {
|
||||
mux := http.NewServeMux()
|
||||
|
||||
mux.HandleFunc("GET /agent/ws", s.hub.ServeAgentWS)
|
||||
mux.Handle("GET /agent/ws", s.bearerAuth(http.HandlerFunc(s.hub.ServeAgentWS)))
|
||||
mux.HandleFunc("GET /ws", s.handleWebWS)
|
||||
|
||||
api := http.NewServeMux()
|
||||
|
||||
Reference in New Issue
Block a user