|<- [[Building a Hello Express application]]|[[Using templates]] ->| var express = require('express'); var app = express(); app.get('/', function(req, res) { res.send('

😝

Hello !

') }) app.get('/fr', function(req, res) { res.send('

😝

Bonjour !

') }) app.get('/who/:name?', function(req, res) { var name = req.params.name; res.send('

😝

Hello ' + name + ' !

') }) app.get('/who/:name?/:title', function(req, res) { var name = req.params.name; var title = req.params.title; res.send('

😝

Hello ' + name + ' !

' + title + '

') }) // si on a autre chose app.get('*', function(req, res) { var name = req.params.name; var title = req.params.title; res.send('

😭

'); }) var server = app.listen(3000, function() { console.log('Listening on port 3000.'); })