1
0
mirror of https://github.com/lxsang/antd-web-apps synced 2025-07-24 17:49:47 +02:00

fix stuff

This commit is contained in:
lxsang
2018-10-09 12:14:33 +02:00
parent c3f58c08ed
commit 0ad5eaa138
8 changed files with 23 additions and 14 deletions

View File

@ -5,7 +5,7 @@
-- some global variables
DIR_SEP = "/"
WWW_ROOT = "/opt/www/htdocs/blog"
HTTP_ROOT = "https://blog.localhost:9195"
HTTP_ROOT = "https://blog.lxsang.me"
-- class path: path.to.class
BASE_FRW = ""
-- class path: path.to.class
@ -25,7 +25,7 @@ end
-- registry object store global variables
local REGISTRY = {}
-- set logging level
REGISTRY.logger = Logger:new{ levels = {INFO = true, ERROR = true, DEBUG = true}}
REGISTRY.logger = Logger:new{ levels = {INFO = false, ERROR = true, DEBUG = false}}
REGISTRY.db = DBHelper:new{db="mrsang"}
REGISTRY.layout = 'default'
REGISTRY.fileaccess = true
@ -52,8 +52,8 @@ router:setPath(CONTROLLER_ROOT)
}
}
}
} ]]
router:route('default', default_routes_dependencies )
}
router:route('default', default_routes_dependencies )]]
router:remap("index", "post")
router:remap("r", "post")
router:delegate()