Mercurial Hosting > disearch
diff src/lib/Shared.luan @ 13:af2b95854072
add server records
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Mon, 30 Oct 2023 21:32:42 -0600 |
parents | 3e2cb946d511 |
children | 80105b716a62 |
line wrap: on
line diff
--- a/src/lib/Shared.luan Mon Oct 30 14:59:45 2023 -0600 +++ b/src/lib/Shared.luan Mon Oct 30 21:32:42 2023 -0600 @@ -4,17 +4,14 @@ local Parsers = require "luan:Parsers.luan" local json_string = Parsers.json_string or error() local Http = require "luan:http/Http.luan" +local Utils = require "site:/lib/Utils.luan" +local get_user = Utils.get_user or error() local Shared = {} local started = Time.now() -local function get_user() - return Http.request.cookies.user -end -Shared.get_user = get_user - function Shared.head() %> <meta name="viewport" content="width=device-width, initial-scale=1">