Files
starr-philproperties/routes/health.routes.js
T
kennethobsequio 439bb33f77 ready to test
Testing

Signed-off-by: Kenneth Obsequio <k80308392@gmail.com>
2026-06-22 10:06:58 +08:00

22 lines
1.0 KiB
JavaScript

/***********************************************************************************************************************************************************************
* File Name: health.routes.js
* Type of Program: Router
* Description: Public health check endpoints — no auth, no originGuard.
* Intentionally kept outside all guards so monitoring tools can reach them.
*
* GET /api/health → dashboard (rich: app info, system info, all service connections)
* GET /api/health/ready → readiness (compact: status + checks + memory, for machines)
*
* Author: Kenneth Obsequio (@lash0000)
* Date Created: Jun. 20, 2026
***********************************************************************************************************************************************************************/
"use strict";
const router = require('express').Router();
const ctrl = require('../controllers/health.controller');
router.get('/', ctrl.dashboard);
router.get('/ready', ctrl.readiness);
module.exports = router;