From 1ed346bcfc01c7a06bbabbe6969ba72134405a4c Mon Sep 17 00:00:00 2001 From: DanyLE Date: Wed, 25 Jan 2023 22:38:03 +0100 Subject: [PATCH] fix: user correct path to find module --- APIs/api.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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