mirror of
				https://github.com/lxsang/antd-web-apps
				synced 2025-10-31 02:15:41 +01:00 
			
		
		
		
	minor fix
This commit is contained in:
		| @@ -5,7 +5,7 @@ | |||||||
| -- some global variables | -- some global variables | ||||||
| DIR_SEP = "/" | DIR_SEP = "/" | ||||||
| WWW_ROOT = "/opt/www/htdocs/os" | WWW_ROOT = "/opt/www/htdocs/os" | ||||||
| HTTP_ROOT = "https://wos.localhost:9192" | HTTP_ROOT = "http://os.localhost:9192" | ||||||
| -- class path: path.to.class | -- class path: path.to.class | ||||||
| BASE_FRW = "" | BASE_FRW = "" | ||||||
| -- class path: path.to.class | -- class path: path.to.class | ||||||
| @@ -27,15 +27,15 @@ require("common") | |||||||
| local REGISTRY = {} | local REGISTRY = {} | ||||||
| -- set logging level | -- set logging level | ||||||
| REGISTRY.logger = Logger:new{ levels = {INFO = true, ERROR = true, DEBUG = true}} | REGISTRY.logger = Logger:new{ levels = {INFO = true, ERROR = true, DEBUG = true}} | ||||||
| REGISTRY.db = DBHelper:new{db="sysdb"} | --REGISTRY.db = DBHelper:new{db="sysdb"} | ||||||
| REGISTRY.layout = 'default' | REGISTRY.layout = 'default' | ||||||
| REGISTRY.fileaccess = true | REGISTRY.fileaccess = true | ||||||
|  |  | ||||||
| REGISTRY.db:open() | --REGISTRY.db:open() | ||||||
| local router = Router:new{registry = REGISTRY} | local router = Router:new{registry = REGISTRY} | ||||||
| REGISTRY.router = router | REGISTRY.router = router | ||||||
| router:setPath(CONTROLLER_ROOT) | router:setPath(CONTROLLER_ROOT) | ||||||
|  |  | ||||||
| router:delegate() | router:delegate() | ||||||
| if REGISTRY.db then REGISTRY.db:close() end | --if REGISTRY.db then REGISTRY.db:close() end | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user