From d934573daba3f60453750f986d20f87d1f198ffd Mon Sep 17 00:00:00 2001 From: tgpethan Date: Tue, 16 Mar 2021 18:40:22 +0000 Subject: [PATCH] Asyncify --- index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/index.js b/index.js index 3c592ef..da2f78e 100644 --- a/index.js +++ b/index.js @@ -115,14 +115,14 @@ fs.readFile('./misc/ascii.txt', function(err, data) { function frameworkServer() { // Load in the request handler's extra required items. - reqhandler.extras(); + await reqhandler.extras(); // Define where GET requests go to in the request handlers. - app.get('*', (req, res) => { + app.get('*', async (req, res) => { res.set("X-Powered-By", "Revolution"); reqhandler.get(req, res); }); // Define where POST requests go to in the request handlers. - app.post('*', (req, res) => { + app.post('*', async (req, res) => { res.set("X-Powered-By", "Revolution"); reqhandler.post(req, res); });