MossChat_Backend/main.go
2024-06-16 02:08:50 +08:00

20 lines
360 B
Go

package main
import (
"MossChat/api"
"MossChat/db"
"MossChat/logger"
"MossChat/route"
)
func main() {
//初始化日志
logger.InitLogger()
db.InitDatabase()
sv := route.InitWebServer(":1145")
sv.POST("/api/v1/user/register", api.RegisterHandler)
//wsSv := ws.ChatServer{ServerName: "ChatV1", RelativePath: "/chat"}
//wsSv.Bind(sv)
//select {}
}