From 39d93e644b4ec1d7466a52666d7bfb16d9bf5a2a Mon Sep 17 00:00:00 2001 From: Maxime Quandalle Date: Tue, 9 Jul 2019 11:23:46 +0200 Subject: [PATCH] Ajout d'une page d'accueil sur le serveur de dev --- source/server.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/source/server.js b/source/server.js index af689d7d1..6810bbc62 100644 --- a/source/server.js +++ b/source/server.js @@ -12,6 +12,12 @@ const rewrite = basename => ({ to: `/${basename}.html` }) +app.get('/', function(req, res) { + res.send(`This website is available in 2 languages : + `) +}) + app.use( history({ rewrites: ['infrance', 'mon-entreprise'].map(rewrite) @@ -30,5 +36,5 @@ app.use( app.use(require('webpack-hot-middleware')(compiler)) app.listen(8080, function() { - console.log('Example app listening on port 8080!\n') + console.log('Mon-entreprise listening on port 8080!\n') })