From 7da57a293b479258fc8d4880ee7314ec356fb11c Mon Sep 17 00:00:00 2001 From: tgpethan Date: Fri, 3 Jan 2020 00:31:03 +0000 Subject: [PATCH] Update example_request_handler.js --- modules/example_request_handler.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/example_request_handler.js b/modules/example_request_handler.js index 148e8ef..b5d458d 100644 --- a/modules/example_request_handler.js +++ b/modules/example_request_handler.js @@ -19,11 +19,11 @@ if (!fs.existsSync(__dirname + BASE_PATH + "/files")) { } module.exports = { - extras:function() { + extras:async function() { // Anything else that is needed like busboy // Put them to global.app (the express app) }, - get:function(req, res) { + get:async function(req, res) { /* req - Request from client res - Response from server @@ -39,7 +39,7 @@ module.exports = { } }); }, - post:function(req, res) { + post:async function(req, res) { /* req - Request from client res - Response from server -- 2.47.0