1
This commit is contained in:
parent
41fc9270dc
commit
2fdda4e3d1
@ -3,6 +3,7 @@ package initialize
|
||||
import (
|
||||
_ "main/app"
|
||||
. "main/global"
|
||||
_ "main/router"
|
||||
)
|
||||
|
||||
func Init() {
|
||||
|
@ -8,5 +8,5 @@ import (
|
||||
type AnncRouter struct{}
|
||||
|
||||
func (this *AnncRouter) InitAnncRouter() {
|
||||
f5.GetApp().RegisterCaHandle("Annc", "getAnnouncement", ca.ApiGroupApp.GetAnnouncement)
|
||||
f5.GetApp().RegisterCaHandle("Annc", "getAnnouncement", ca.ApiGroupApp.AnncApi.GetAnnouncement)
|
||||
}
|
||||
|
@ -8,6 +8,6 @@ import (
|
||||
type LoginRouter struct{}
|
||||
|
||||
func (this *LoginRouter) InitLoginRouter() {
|
||||
f5.GetApp().RegisterCaHandle("Login", "getNonce", ca.ApiGroupApp.GetNonce)
|
||||
f5.GetApp().RegisterCaHandle("Login", "auth", ca.ApiGroupApp.Auth)
|
||||
f5.GetApp().RegisterCaHandle("Login", "getNonce", ca.ApiGroupApp.LoginApi.GetNonce)
|
||||
f5.GetApp().RegisterCaHandle("Login", "auth", ca.ApiGroupApp.LoginApi.Auth)
|
||||
}
|
||||
|
@ -8,6 +8,6 @@ import (
|
||||
type ServerSwitchRouter struct{}
|
||||
|
||||
func (this *ServerSwitchRouter) InitServerSwitchRouter() {
|
||||
f5.GetApp().RegisterCaHandle("ServerSwitch", "getSwitch", ca.ApiGroupApp.GetSwitch)
|
||||
f5.GetApp().RegisterCaHandle("ServerSwitch", "getWhiteList", ca.ApiGroupApp.GetWhiteList)
|
||||
f5.GetApp().RegisterCaHandle("ServerSwitch", "getSwitch", ca.ApiGroupApp.ServerSwitchApi.GetSwitch)
|
||||
f5.GetApp().RegisterCaHandle("ServerSwitch", "getWhiteList", ca.ApiGroupApp.ServerSwitchApi.GetWhiteList)
|
||||
}
|
||||
|
@ -13,7 +13,9 @@ func (this *routerMgr) Init() {
|
||||
/*
|
||||
f5.GetApp().GetGinEngine().Use(middleware.Cors())
|
||||
*/
|
||||
this.ca.InitGameLogRouter()
|
||||
this.ca.InitLoginRouter()
|
||||
this.ca.InitAnncRouter()
|
||||
this.ca.InitServerSwitchRouter()
|
||||
f5.GetSysLog().Info("routerMgr.init")
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user