Skip to content

Instantly share code, notes, and snippets.

@raphaklaus
Created July 7, 2016 04:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save raphaklaus/3a01be39616f67dfbd91f3e84c8af409 to your computer and use it in GitHub Desktop.
Save raphaklaus/3a01be39616f67dfbd91f3e84c8af409 to your computer and use it in GitHub Desktop.
// localhost/numeroPar&numero=2
function getNumeroPar(res, req, next) {
numerpPar(req.params.numero).then(function(){
res.send('É par!');
})
.catch(function(){
res.send('É ímpar!');
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment