feat(ws server): added in a websocket on port system to help with better logging
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user