diff options
| author | ame <[email protected]> | 2024-04-19 11:09:20 -0500 |
|---|---|---|
| committer | ame <[email protected]> | 2024-04-19 11:09:20 -0500 |
| commit | 2b6f9144b282628ecb1ac77052a45de0c60d4716 (patch) | |
| tree | ab28f51d76a9eebc186ac6c50acd41a1ff3dca26 /docs | |
| parent | a0d8a6f3fe365aba0d416f4c33b2c547e4e35820 (diff) | |
horay! more net code
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/net.md | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/net.md b/docs/net.md index e5c4070..2c8ca45 100644 --- a/docs/net.md +++ b/docs/net.md @@ -118,13 +118,13 @@ res.header["test"] = "wowa" ...
```
-### res:serve **
+### res:sendfile
-'takes one string, which is a path that will be served, file or dir
+'takes one string, which is a path that will be served, must be a file
```lua
...
-res:serve("./html/")
+res:sendfile("./html/index.html")
...
```
|
