Last active
September 8, 2018 13:51
-
-
Save dimitardanailov/78dc3d7d58be0b5f2318d2d48ebf2ec2 to your computer and use it in GitHub Desktop.
IBM NodeServer Generator health route
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
module.exports = (app) => { | |
const router = require('express').Router(); | |
router.get('/', (req, res, next) => { | |
res.json({ status: 'UP' }); | |
}); | |
app.use('/health', router); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment