Peradventure/app.lua

29 lines
270 B
Lua
Raw Normal View History

2024-03-16 18:29:52 -05:00
local lapis = require("lapis")
local app = lapis.Application()
2024-03-16 20:00:13 -05:00
local say = require('lua_scripts/main')
2024-03-16 18:29:52 -05:00
app:enable("etlua")
2024-03-16 20:00:13 -05:00
app:get("/", function(self)
self.text = say.hello()
self.plane = { "P-38L" }
2024-03-16 18:29:52 -05:00
return {render = "index"}
end)
return app
2024-03-16 20:00:13 -05:00