diff --git a/lib/api-server.js b/lib/api-server.js index 3dc241c..aa9809d 100644 --- a/lib/api-server.js +++ b/lib/api-server.js @@ -74,6 +74,16 @@ class APIServer { } setupRoutes() { + this.server.get('/healthz', (req, res, next) => { + const redis = plugins.handler.options.db.redis; + console.log(redis); + + res.json(200, { + redis: true + }); + return next(); + }); + // Example handler for authentication. You should probably override it // with the config.plugins['core/http-auth'].url option this.server.get('/test-auth', (req, res, next) => {