diff options
| author | ame <[email protected]> | 2024-02-16 12:43:34 -0600 |
|---|---|---|
| committer | ame <[email protected]> | 2024-02-16 12:43:34 -0600 |
| commit | ec87ff4813299f7fff7b97f38a9a22f6e1afdc0d (patch) | |
| tree | 76533bf2e7716ec46a9624d50fe46d34f434e53a /docs/net.md | |
| parent | 93e16534bfbc0f52f7c453b399b583b0a02cbf87 (diff) | |
hmm
Diffstat (limited to 'docs/net.md')
| -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 a39aaa7..da01fb2 100644 --- a/docs/net.md +++ b/docs/net.md @@ -110,13 +110,13 @@ res.header["test"] = "wowa" ...
```
-### server:static_serve **
+### res:serve **
-'takes two strings, first is server serve path, second is local path, being a file or directory
+'takes one string, which is a path that will be served, file or dir
```lua
...
-server:static_serve("/public", "./html/")
+res:serve("./html/")
...
```
|
