diff --git a/src/app.js b/src/app.js index b82ec7c..3fcda44 100644 --- a/src/app.js +++ b/src/app.js @@ -22,6 +22,7 @@ const routes = require('./routes'); const logger = require('./common/logger'); const errors = require('./common/errors'); const constants = require('./common/constants'); +const {getAppHealth} = require('./controllers/AppHealthController'); const app = express(); app.use(cors()); @@ -99,6 +100,8 @@ _.forEach(routes, (verbs, path) => { }); }); +app.get(`/api/${config.API_VERSION}/health`, getAppHealth); + // static content app.use(express.static(Path.join(__dirname, 'public'))); app.use('*', (req, res) => { diff --git a/src/routes.js b/src/routes.js index 36d0c33..00d91b5 100644 --- a/src/routes.js +++ b/src/routes.js @@ -226,10 +226,4 @@ module.exports = { method: 'getAppConfig', }, }, - '/health': { - get: { - controller: 'AppHealthController', - method: 'getAppHealth', - }, - }, };