Created
July 28, 2018 12:07
-
-
Save tankala/c1a60f3cd8627a89433925677050a6c5 to your computer and use it in GitHub Desktop.
Controller
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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