From 35bed8f797c36a11b4d23fd07420220d77e0a036 Mon Sep 17 00:00:00 2001 From: lxsang Date: Fri, 3 May 2019 13:20:13 +0200 Subject: [PATCH] fix gateway issues --- os/controllers/SystemController.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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