Make default redbean lua module path zip:.lua/...

Fixes #157
This commit is contained in:
Justine Tunney 2021-05-16 19:05:35 -07:00
parent 6a8c21269f
commit 3057315a1b
5 changed files with 23 additions and 8 deletions

View file

@ -0,0 +1,10 @@
local mymodule = {}
function mymodule.hello()
SetStatus(200)
SetHeader('Content-Type', 'text/html; charset=US-ASCII')
Write("<!doctype html>\r\n")
Write("<b>Hello World!</b>\r\n")
end
return mymodule