Last active
October 12, 2017 07:45
-
-
Save quentinchap/dae466a87c902a0666bc23bfe09adefb to your computer and use it in GitHub Desktop.
Gist dans le cadre d'un article sur https://devotics.fr
This file contains 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
// Création de la route /hello | |
app.get('/hello', function(req, res) { | |
// Récupération du paramètre "name" | |
var name = req.param('name'); | |
// Création et envoi de la réponse | |
res.send('GET: Hello ' + name); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment