20 lines
360 B
Go
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 {}
|
||
|
}
|