mirror of
https://gitee.com/XM-GO/PandaX.git
synced 2026-04-23 02:48:34 +08:00
说明
This commit is contained in:
2
main.go
2
main.go
@@ -6,11 +6,13 @@ import (
|
||||
"pandax/base/global"
|
||||
"pandax/base/starter"
|
||||
"pandax/initialize"
|
||||
"pandax/middleware"
|
||||
)
|
||||
|
||||
func main() {
|
||||
global.Db = starter.GormInit(config.Conf.Server.DbType)
|
||||
initialize.InitTable()
|
||||
ctx.UseAfterHandlerInterceptor(middleware.OperationHandler)
|
||||
ctx.UseBeforeHandlerInterceptor(ctx.PermissionHandler)
|
||||
ctx.UseAfterHandlerInterceptor(ctx.LogHandler)
|
||||
starter.RunWebServer(initialize.InitRouter())
|
||||
|
||||
Reference in New Issue
Block a user