Update socket_routes.go

This commit is contained in:
Rami Berman
2022-01-09 14:39:51 +02:00
parent 27b95187ff
commit 5808515ad9

View File

@@ -46,9 +46,9 @@ func init() {
}
func WebSocketRoutes(app *gin.Engine, eventHandlers EventHandlers, startTime int64) {
app.GET("/ws", middlewares.RequiresAuth(), func(c *gin.Context) {
app.GET("/ws", func(c *gin.Context) {
websocketHandler(c.Writer, c.Request, eventHandlers, false, startTime)
})
}, middlewares.RequiresAuth())
app.GET("/wsTapper", func(c *gin.Context) { // TODO: add m2m authentication to this route
websocketHandler(c.Writer, c.Request, eventHandlers, true, startTime)