diff options
| author | ame <[email protected]> | 2024-08-26 22:33:07 -0500 |
|---|---|---|
| committer | ame <[email protected]> | 2024-08-26 22:33:07 -0500 |
| commit | d0c7c5b0dd9d20bfc323dc10c67f9de12d58c343 (patch) | |
| tree | 893fe45044ce5869246328f82eca2e7b78f02dd6 /tests | |
| parent | fda120441cabfefc511786d7a6af40eec9f181fa (diff) | |
initial param matching
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/net.lua | 8 |
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")
|
