Created
October 19, 2018 20:48
-
-
Save denispeyrusaubes/588c8778125e6887ed836457bcaaf1d0 to your computer and use it in GitHub Desktop.
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 express = require('express') | |
const app = express() | |
app.get('/', function (req, res) { | |
var ip = require('ip'); | |
res.send('Hello fom host ' + ip.address()) | |
}) | |
app.get('/color', function (req, res) { | |
res.send('bleu') | |
}) | |
app.listen(3000, function () { | |
console.log('Example app listening on port 3000!') | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment