Update example_request_handler.js
This commit is contained in:
parent
ea15c18e27
commit
7da57a293b
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue