const express = require('express')
const { success } = require('../utils/response')

const router = express.Router()

function respondHealth(req, res) {
    return success(res, '服务运行正常', {
        status: 'healthy',
        timestamp: new Date().toISOString(),
    })
}

router.post('/health', respondHealth)

module.exports = router
