Created
October 14, 2015 19:29
-
-
Save jdx/8a99e8542b86bbac8025 to your computer and use it in GitHub Desktop.
Express.js 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'; | |
let express = require('express'); | |
let app = express(); | |
app.get('/statuscheck', function (req, res) { | |
res.json({status: 'success'}); | |
}); | |
app.listen(process.env.PORT || 3000); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment