Guanghu Domestic Migration d1e47f4565
Some checks are pending
自动更新代码和重启 / update-and-restart (push) Waiting to run
CI检查 + 自动部署 / check (push) Waiting to run
CI检查 + 自动部署 / deploy (push) Blocked by required conditions
重启聊天服务 / restart (push) Waiting to run
chore: import sanitized domestic snapshot for REPO-002
Source snapshot: ca48d3ddf926d79aa138306164169baf764bb829
2026-07-17 15:54:41 +08:00

25 lines
527 B
JavaScript

/**
* /api/health — 健康检查路由
* 版权:国作登字-2026-A-00037559
*/
'use strict';
var express = require('express');
var router = express.Router();
router.get('/health', function(_req, res) {
res.json({
status: 'ok',
service: 'guanghu-api-server',
channel: 'B',
version: '1.0.0',
uptime: process.uptime(),
timestamp: new Date().toISOString(),
notion_configured: !!process.env.NOTION_TOKEN,
github_configured: !!process.env.GITHUB_TOKEN
});
});
module.exports = router;