Rename function to make more sense

This commit is contained in:
tgpethan 2021-03-16 18:40:37 +00:00
parent d934573dab
commit f09d129bae

View file

@ -108,12 +108,12 @@ fs.readFile('./misc/ascii.txt', function(err, data) {
global.modules.consoleHelper.printError(emoji.cross, "No request handler was loaded, possibly due to an error."); global.modules.consoleHelper.printError(emoji.cross, "No request handler was loaded, possibly due to an error.");
process.exit(1); process.exit(1);
} }
frameworkServer(); start();
} }
}); });
}); });
function frameworkServer() { async function start() {
// Load in the request handler's extra required items. // Load in the request handler's extra required items.
await reqhandler.extras(); await reqhandler.extras();
// Define where GET requests go to in the request handlers. // Define where GET requests go to in the request handlers.