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 | cebd1b729739b020d6b3700c87c4ef8d4d67890a (patch) | |
| tree | ab28f51d76a9eebc186ac6c50acd41a1ff3dca26 /docs | |
| parent | 7ed170c58e9d9f8edab6e5226bf66d7a71c2222e (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")
...
```
|
