@@ -411,9 +411,18 @@ func NewAPIRouter(han *controllers.APIController, authMiddleware, initMiddleware
411
411
apiRouter .Handle ("/github/credentials/{id}/" , http .HandlerFunc (han .UpdateGithubCredential )).Methods ("PUT" , "OPTIONS" )
412
412
apiRouter .Handle ("/github/credentials/{id}" , http .HandlerFunc (han .UpdateGithubCredential )).Methods ("PUT" , "OPTIONS" )
413
413
414
- // Websocket log writer
415
- apiRouter .Handle ("/{ws:ws\\ /?}" , http .HandlerFunc (han .WSHandler )).Methods ("GET" )
416
- apiRouter .Handle ("/{events:events\\ /?}" , http .HandlerFunc (han .EventsHandler )).Methods ("GET" )
414
+ /////////////////////////
415
+ // Websocket endpoints //
416
+ /////////////////////////
417
+ // Legacy log websocket path
418
+ apiRouter .Handle ("/ws/" , http .HandlerFunc (han .WSHandler )).Methods ("GET" )
419
+ apiRouter .Handle ("/ws" , http .HandlerFunc (han .WSHandler )).Methods ("GET" )
420
+ // Log websocket endpoint
421
+ apiRouter .Handle ("/ws/logs/" , http .HandlerFunc (han .WSHandler )).Methods ("GET" )
422
+ apiRouter .Handle ("/ws/logs" , http .HandlerFunc (han .WSHandler )).Methods ("GET" )
423
+ // DB watcher websocket endpoint
424
+ apiRouter .Handle ("/ws/events/" , http .HandlerFunc (han .EventsHandler )).Methods ("GET" )
425
+ apiRouter .Handle ("/ws/events" , http .HandlerFunc (han .EventsHandler )).Methods ("GET" )
417
426
418
427
// NotFound handler
419
428
apiRouter .PathPrefix ("/" ).HandlerFunc (han .NotFoundHandler ).Methods ("GET" , "POST" , "PUT" , "DELETE" , "OPTIONS" )
0 commit comments