Created
July 16, 2018 05:41
-
-
Save rcdexta/af3de193ecb7a2a5d050e740992e1ef0 to your computer and use it in GitHub Desktop.
Express.js Status API
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('/status', (req, res) => res.status(200).json({status: 'ok'})) | |
app.listen(3000, () => 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