diff --git a/os/controllers/SystemController.lua b/os/controllers/SystemController.lua index c77f430..8536081 100644 --- a/os/controllers/SystemController.lua +++ b/os/controllers/SystemController.lua @@ -125,7 +125,8 @@ function SystemController:apigateway(...) echo(e) end elseif data.path then - r, e = loadfile(data.path) + local ospath = require("vfs").ospath(data.path) + r, e = loadfile(ospath) if r then local status, result = pcall(r, data.parameters) if (status) then