Created
October 5, 2017 23:42
-
-
Save sean3z/86eeb2b5ddbca4845f2120ce7c29776f to your computer and use it in GitHub Desktop.
Restify 6.0.1 Example
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
"use strict"; | |
const restify = require('restify'); | |
const app = restify.createServer(); | |
app.get('/', (req, res, next) => { | |
res.send('Hello, world!'); | |
}); | |
app.listen(8080, () => { | |
console.log('%s listening at %s', app.name, app.url); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment