From 8d9e00edacbc061ec5efba100e2af71be6824af8 Mon Sep 17 00:00:00 2001 From: Stanisław Zagórowski Date: Thu, 11 Jan 2024 15:29:25 +0100 Subject: luax --- example/reluax.luax | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 example/reluax.luax (limited to 'example/reluax.luax') diff --git a/example/reluax.luax b/example/reluax.luax new file mode 100644 index 0000000..a343826 --- /dev/null +++ b/example/reluax.luax @@ -0,0 +1,24 @@ +local index = require("index") + +math.randomseed(os.time()) + +local function route(path) + if path == '/' then + return index() + end + + return + + Error 404 + + +

Error 404

+

Page not found.

+ + +end + +return { + name = "hello-world", + route = route +} -- cgit v1.3.1