feat(ws server): added in a websocket on port system to help with better logging

This commit is contained in:
2025-07-25 12:13:19 -05:00
parent 074032f20d
commit 5bcbdaf3d0
17 changed files with 679 additions and 19 deletions

View File

@@ -24,10 +24,11 @@ import (
"github.com/gin-contrib/cors"
"github.com/gin-gonic/gin"
"github.com/joho/godotenv"
"lst.net/cmd/services/logging"
"lst.net/cmd/services/system/config"
socketio "lst.net/cmd/services/websocket"
_ "lst.net/docs"
"lst.net/utils/db"
logging "lst.net/utils/logger"
)
func main() {
@@ -110,7 +111,8 @@ func main() {
c.JSON(200, gin.H{"message": "pong"})
})
logging.RegisterLoggerRoutes(r, basePath)
//logging.RegisterLoggerRoutes(r, basePath)
socketio.RegisterSocketRoutes(r)
config.RegisterConfigRoutes(r, basePath)
r.Any(basePath+"/api", errorApiLoc)