16 lines
322 B
Lua
16 lines
322 B
Lua
local cache = require("cache")
|
|
local config = require("config")
|
|
local pages = require("pages")
|
|
|
|
|
|
local function login_get(req)
|
|
--Just give them the login page
|
|
local ret = cache.render(
|
|
string.format("%s/_login",config.domain),
|
|
function() return pages.login{} end
|
|
)
|
|
http_response(req,200,ret)
|
|
end
|
|
|
|
return login_get
|