I have a controller with two functions:
module.exports.getQuestionnaire = function(application, req, res) {
}
module.exports.getClientDetails = function(application, req, res) {
}
I want to call the getQuestionnaire function inside the getClientDetails function.
Just calling getQuestionnaire() does not work. How should I do this?
exports.getQuestionnaire()ormodule.exports.getQuestionnaire()exports.getQuestionnaire(clientId)