From 6cbc0f817066b8bbab84a9be466223652b628d42 Mon Sep 17 00:00:00 2001 From: ame Date: Mon, 26 Aug 2024 22:33:07 -0500 Subject: initial param matching --- tests/net.lua | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'tests') 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") -- cgit v1.2.3