mirror of
https://github.com/rgrgogu/new_starr.git
synced 2026-09-27 00:12:54 +08:00
chore: relocate backend into apps/api ahead of monorepo merge
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
/***********************************************************************************************************************************************************************
|
||||
* 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;
|
||||
Reference in New Issue
Block a user