Permalink
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
executable file 26 lines (20 sloc) 613 Bytes
<?npl
--[[
Title: all requests are directed to this page.
Author: LiXizhi
Date: 2016/9/14
Desc:
]]
-- we will not load complete framework, but only ajax and helper functions
WP_USE_MINI_LOADER = true;
include_once("script/apps/WebServer/admin/wp-main.page");
-- call the router
WIKI_CODE_ENV = "wiki"
local devDomain = ".dev.keepwork.com"
local host = request:GetHost() or ""
local pos = string.find(host, devDomain)
if pos and pos > 1 then
WIKI_CODE_ENV = string.sub(host,1, pos-1)
end
include_once("./" .. WIKI_CODE_ENV .. "/routes.page")
--include_once("./wiki/routes.page");