aboutsummaryrefslogtreecommitdiff
path: root/tests/net.lua
diff options
context:
space:
mode:
authorame <[email protected]>2024-08-26 22:33:07 -0500
committerame <[email protected]>2024-08-26 22:33:07 -0500
commit6cbc0f817066b8bbab84a9be466223652b628d42 (patch)
tree893fe45044ce5869246328f82eca2e7b78f02dd6 /tests/net.lua
parent7a15e796e8789b51a459af7fe890e02a416e1fc7 (diff)
initial param matching
Diffstat (limited to 'tests/net.lua')
-rw-r--r--tests/net.lua8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/net.lua b/tests/net.lua
index 25ca696..fdb17d4 100644
--- a/tests/net.lua
+++ b/tests/net.lua
@@ -17,6 +17,14 @@ net.listen(
io.pprint("online")
_G.server = server
+
+ server:all("/{name}", function(res, req)
+ print("name is "..req.name)
+ end)
+ server:all("*", function(res, req)
+ print("all")
+ end)
+
server:all("/", function(res, req)
b = crypto.md5("hello")