mirror of
https://github.com/lxsang/antd-lua-plugin
synced 2024-12-26 01:18:22 +01:00
fix: user correct path to find module
All checks were successful
gitea-sync/antd-lua-plugin/pipeline/head This commit looks good
All checks were successful
gitea-sync/antd-lua-plugin/pipeline/head This commit looks good
This commit is contained in:
parent
b0812d1e14
commit
1ed346bcfc
@ -242,7 +242,7 @@ end
|
|||||||
-- run the file
|
-- run the file
|
||||||
|
|
||||||
|
|
||||||
local m, s, p = has_module(HTTP_REQUEST.request.RESOURCE_PATH)
|
local m, s, p = has_module(HTTP_REQUEST.request.REQUEST_URI)
|
||||||
if m then
|
if m then
|
||||||
-- run the correct module
|
-- run the correct module
|
||||||
if s then
|
if s then
|
||||||
@ -253,7 +253,7 @@ if m then
|
|||||||
require(p)
|
require(p)
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
unknow("Resource not found for request "..HTTP_REQUEST.request.RESOURCE_PATH)
|
unknow("Resource not found for request "..HTTP_REQUEST.request.REQUEST_URI)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user