From e5c378a13548d8f7ef7e1f883e7a98fd0e9207b4 Mon Sep 17 00:00:00 2001 From: Duckonaut Date: Mon, 9 Nov 2026 17:42:26 +0100 Subject: visits and cleanup --- reluax.luax | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'reluax.luax') diff --git a/reluax.luax b/reluax.luax index 6845de6..6cd4949 100644 --- a/reluax.luax +++ b/reluax.luax @@ -19,13 +19,16 @@ local wrap_component = function(component) end +local visits = 0 + local route = function(path, method, headers, body) if method ~= 'GET' then return 405, "Method not allowed" end if path == '/' then - return 200, wrap_component() + visits = visits + 1 + return 200, wrap_component() end return 404, NotFound() -- cgit v1.3.1