Skip to content

Instantly share code, notes, and snippets.

@tankala
Created July 28, 2018 12:07
Show Gist options
  • Save tankala/c1a60f3cd8627a89433925677050a6c5 to your computer and use it in GitHub Desktop.
Save tankala/c1a60f3cd8627a89433925677050a6c5 to your computer and use it in GitHub Desktop.
Controller
const wordWizard = require('./wordWizard')
exports.getWordsCountInDesc = function (req, res) {
let callBack = function (err, response) {
if (err) {
res.json({});
} else {
res.json(response);
}
}
let sentence = req.body.sentence;
wordWizard.getWordsCountInDesc(sentence, callBack);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment