From 2b6f9144b282628ecb1ac77052a45de0c60d4716 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