Peradventure/app.lua
2024-03-17 16:54:08 -05:00

66 lines
555 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
local db = Model:extend('database')
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