Skip to content

Instantly share code, notes, and snippets.

@rcdexta
Created July 16, 2018 05:41
Show Gist options
  • Save rcdexta/af3de193ecb7a2a5d050e740992e1ef0 to your computer and use it in GitHub Desktop.
Save rcdexta/af3de193ecb7a2a5d050e740992e1ef0 to your computer and use it in GitHub Desktop.
Express.js Status API
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