this took 10 min why did I put it off for days

This commit is contained in:
Enstrayed
2023-11-11 09:35:00 -08:00
parent d9bb432f7d
commit 29ad2f0f25
3 changed files with 53 additions and 5 deletions

View File

@@ -11,6 +11,9 @@ const db = new Redis({
})
module.exports = { app, db, globalConfig } // Export database connection for other files
app.use(express.json()) // Allows receiving JSON bodies
// see important note: https://expressjs.com/en/api.html#express.json
fs.readdir(globalConfig.routesDirectory, (err, files) => {
if (err) {
console.log("FATAL: Unable to read ./routes")