兼容linux

This commit is contained in:
xx
2024-05-28 15:12:37 +08:00
parent b8b2ff12bf
commit bdbe5f34dd
34 changed files with 331 additions and 713 deletions

View File

@@ -1,17 +1,10 @@
require "website"
-- 通用入口函数
route = {"/",GET}
function access()
-- MYSQL执行SELECT查询map表
--local result = mysql:select():table("map"):query()
-- 构建回复数据
--local data = result:table()
local data = {
name = "Fast Web 快速网站开发框架"
}
-- 返回JSON数据
json(data)
reply(200,"OK",data)
end