I see you lack a style guide.
if(process.env.NODE_ENV !== 'production') {
res.write(err.message + " " + err.stack);
}
OR
if (path.includes("..") || path.includes("~")) return res.status(503).end("Y U HAX >:( ")
OR
if (req.path === '/')
path = '/index.js';
???
I see you lack a style guide.
OR
OR
???