forked from Jonathan/Peradventure
43 lines
334 B
Lua
43 lines
334 B
Lua
local lapis = require("lapis")
|
|
local app = lapis.Application()
|
|
local say = require('lua_scripts/main')
|
|
|
|
app:enable("etlua")
|
|
|
|
app:post("/clickme", function(self)
|
|
self.plane = "P-38L"
|
|
return self.plane
|
|
end)
|
|
|
|
app:get("/", function(self)
|
|
self.text = say.hello()
|
|
return {render = "index"}
|
|
end)
|
|
|
|
return app
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|