diff options
Diffstat (limited to 'reluax.luax')
| -rw-r--r-- | reluax.luax | 5 |
1 files changed, 4 insertions, 1 deletions
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) </Common> 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(<Home />) + visits = visits + 1 + return 200, wrap_component(<Home visits={visits}/>) end return 404, NotFound() |
