Peradventure/app.lua

63 lines
517 B
Lua

local lapis = require("lapis")
local app = lapis.Application()
local say = require('lua_scripts/main')
local player = require('player')
local db = require("lapis.db")
local Model = require("lapis.db.model").Model
app:enable("etlua")
app.layout = require "views.layout"
app:post("/clickme", function(self)
self.plane = "P-38L"
return {self.plane, layout = false}
end)
app:get("/", function(self)
self.text = say.hello()
return {render = "index",
}
end)
return app