You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

20 lines
414 B

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)))
}