From 0cc1ef7105964645500e1113be908fdc50e9d89c Mon Sep 17 00:00:00 2001 From: Stanisław Zagórowski Date: Fri, 19 Jan 2024 23:17:28 +0100 Subject: example: add basic, move hello world into its own dir --- example/basic/reluax.luax | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 example/basic/reluax.luax (limited to 'example/basic') diff --git a/example/basic/reluax.luax b/example/basic/reluax.luax new file mode 100644 index 0000000..bba3e1a --- /dev/null +++ b/example/basic/reluax.luax @@ -0,0 +1,20 @@ +local route = function(path) + if path == '/' then + return 200, + + + basic-example + + +

This is the simplest example of a Reluax application.

+ + + end + + return 404, 'Not Found' +end + +return { + name = 'basic-example', + route = route +} -- cgit v1.3.1