mirror of
https://github.com/lxsang/antd-web-apps
synced 2024-11-20 02:18:20 +01:00
fix
This commit is contained in:
parent
97049638ac
commit
4c01277848
@ -52,7 +52,7 @@ function Router:infer(url)
|
|||||||
-- verify if it is an asset
|
-- verify if it is an asset
|
||||||
url = url:gsub("/", DIR_SEP)
|
url = url:gsub("/", DIR_SEP)
|
||||||
local filepath = WWW_ROOT..DIR_SEP..url
|
local filepath = WWW_ROOT..DIR_SEP..url
|
||||||
if ulib.exists(filepath) and not std.is_dir(filepath) then
|
if ulib.exists(filepath) then -- and not std.is_dir(filepath)
|
||||||
data.controller = AssetController:new {registry = self.registry}
|
data.controller = AssetController:new {registry = self.registry}
|
||||||
data.action = "get"
|
data.action = "get"
|
||||||
data.name = "asset"
|
data.name = "asset"
|
||||||
|
Loading…
Reference in New Issue
Block a user