From 14e2cc8846c844a234fb7688f84a874607dc96e9 Mon Sep 17 00:00:00 2001 From: Stanisław Zagórowski Date: Fri, 12 Jan 2024 22:52:18 +0100 Subject: add CLI tools --- templates/reluax.luax | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 templates/reluax.luax (limited to 'templates/reluax.luax') diff --git a/templates/reluax.luax b/templates/reluax.luax new file mode 100644 index 0000000..8bba507 --- /dev/null +++ b/templates/reluax.luax @@ -0,0 +1,24 @@ +local Index = require("index") + +math.randomseed(os.time()) + +local function route(path) + if path == '/' then + return 200, + end + + return 404, + + Error 404 + + +

Error 404

+

Page not found.

+ + +end + +return { + route = route +} + -- cgit v1.3.1