diff --git a/APIs/api.lua b/APIs/api.lua index d5e36d6..46007dc 100644 --- a/APIs/api.lua +++ b/APIs/api.lua @@ -242,7 +242,7 @@ end -- 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 -- run the correct module if s then @@ -253,7 +253,7 @@ if m then require(p) end else - unknow("Resource not found for request "..HTTP_REQUEST.request.RESOURCE_PATH) + unknow("Resource not found for request "..HTTP_REQUEST.request.REQUEST_URI) end