1
0
mirror of https://github.com/dap-ps/discover.git synced 2025-03-03 18:30:32 +00:00

Merge pull request #21 from dap-ps/add-healthcheck

add a /healthcheck endpoint
This commit is contained in:
Andy Tudhope 2019-07-30 16:28:27 +02:00 committed by GitHub
commit 3451ee5a28
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5,7 +5,10 @@ const DAppsRoute = require('./dapps-routes');
class APIRouter {
static route(app) {
app.use('/metadata', DAppsRoute.build(express));
/* for ElasticBeanstalk Load Balancer healthcheck */
app.use('/healthcheck', async (req, res) => res.send('OK'))
}
}
module.exports = APIRouter;
module.exports = APIRouter;