- basic cms structure.
This commit is contained in:
6
main.go
6
main.go
@@ -7,7 +7,7 @@ import (
|
||||
"os"
|
||||
|
||||
"git.rosy.net.cn/jx-callback/business/jxcallback/orderman"
|
||||
"git.rosy.net.cn/jx-callback/business/jxstore/cms"
|
||||
"git.rosy.net.cn/jx-callback/business/jxstore/qorcms"
|
||||
"git.rosy.net.cn/jx-callback/globals"
|
||||
"git.rosy.net.cn/jx-callback/globals/api"
|
||||
"git.rosy.net.cn/jx-callback/globals/beegodb"
|
||||
@@ -87,9 +87,9 @@ func main() {
|
||||
orderman.LoadPendingOrders()
|
||||
}
|
||||
if beego.AppConfig.DefaultBool("enableStore", false) {
|
||||
cms.Init()
|
||||
qorcms.Init()
|
||||
mux := http.NewServeMux()
|
||||
curAdmin := cms.GetAdmin()
|
||||
curAdmin := qorcms.GetAdmin()
|
||||
curAdmin.MountTo("/admin", mux)
|
||||
beego.Handler("/admin/*", mux)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user