Research Article
HealthNode: Software Framework for Efficiently Designing and Developing Cloud-Based Healthcare Applications
Listing 2
Structure of a middleware function and child submodule function.
(1) | module.exports = function(app, mongoClient,mongoDBuri){ | (2) | app.post (‘/method’, function(req, res){ | (3) | //Method contents | (4) | }); | (5) | }; | | ... | (17) | function ChildSubModuleFunction(data){ | (18) | //Use data | (19) | info = “Information”; | (20) | return info | (21) | } | (22) | exports.ChildSubModuleFunction = ChildSubModuleFunction; |
|