Merge pull request #11 from tgpethan/async

Resolve async issue
This commit is contained in:
Ethan Stubbs 2020-01-03 00:34:28 +00:00 committed by GitHub
commit 3407ba7499
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -19,11 +19,11 @@ if (!fs.existsSync(__dirname + BASE_PATH + "/files")) {
} }
module.exports = { module.exports = {
extras:function() { extras:async function() {
// Anything else that is needed like busboy // Anything else that is needed like busboy
// Put them to global.app (the express app) // Put them to global.app (the express app)
}, },
get:function(req, res) { get:async function(req, res) {
/* /*
req - Request from client req - Request from client
res - Response from server res - Response from server
@ -39,7 +39,7 @@ module.exports = {
} }
}); });
}, },
post:function(req, res) { post:async function(req, res) {
/* /*
req - Request from client req - Request from client
res - Response from server res - Response from server