summaryrefslogtreecommitdiffstats
path: root/server.lua
diff options
context:
space:
mode:
Diffstat (limited to 'server.lua')
-rw-r--r--server.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/server.lua b/server.lua
index c4f3fa4..8ad6d88 100644
--- a/server.lua
+++ b/server.lua
@@ -110,6 +110,11 @@ return function(env)
local success, code, hdr, res = acf.call(
function()
+ if stringy.startswith(path, '/meta/') then
+ if method ~= 'GET' then return 405 end
+ return 200, nil, txn:meta(string.sub(path, 6, -1))
+ end
+
if stringy.startswith(path, '/config/') then
path = string.sub(path, 8, -1)