make example more sane.

This commit is contained in:
The Ghost of FOSS' Past 2024-10-13 11:36:06 -05:00
parent e28919ebaa
commit 204984dfde

View file

@ -13,7 +13,8 @@ const mainHTML = global.marked.parse(`# Welcome to ContentCraft!
PS: PRO TIP - USE "global" WHEN YOU WANT TO USE VARIABLES CROSS-ADDON.
Example - \`global.quickdb = require("quick.db")\``)
Example - \`const {QuickDB} = require("quick.db")
global.db = new QuickDB()\``)
global.app.get('/', (req, res) => {
res.send(mainHTML);