napkin/main.lua

16 lines
310 B
Lua
Raw Normal View History

2025-02-19 18:10:37 -03:00
local weblit = require('weblit')
local config = require('config')
local database = require('database')
weblit.app
.bind({ host = "0.0.0.0", port = 1337 })
-- Configure weblit server
.use(weblit.logger)
.use(weblit.autoHeaders)
.use(weblit.static("static"))
-- Start the server
.start()