From cebd1b729739b020d6b3700c87c4ef8d4d67890a Mon Sep 17 00:00:00 2001 From: ame Date: Fri, 19 Apr 2024 11:09:20 -0500 Subject: horay! more net code --- docs/net.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'docs/net.md') 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") ... ``` -- cgit v1.2.3