package app import ( "fmt" "git.aiterp.net/lucifer/server3/app/api" "git.aiterp.net/lucifer/server3/app/config" "git.aiterp.net/lucifer/server3/app/services" "github.com/gin-gonic/gin" "log" ) func StartServer() { services.StartEventHandler() gin.SetMode(gin.ReleaseMode) ginny := gin.New() api.Events(ginny.Group("/api/events")) log.Fatal(ginny.Run(fmt.Sprintf("0.0.0.0:%d", config.ServerPort))) }