Last active
February 5, 2019 14:14
-
-
Save adamhenson/657be4cca2bcc246704c638590b44784 to your computer and use it in GitHub Desktop.
A Node.js Express server JSON endpoint 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
import express from 'express'; | |
const app = express(); | |
app.get('/healthcheck', (...args) => { | |
const [, res] = args; | |
res.json({ ok: true }); | |
}); | |
app.listen(3000); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment