// routes/healthRoutes.js
const express = require('express');
const router = express.Router();

// 헬스체크 엔드포인트
router.get('/', (req, res) => {
  res.json({
    status: 'healthy',
    service: 'Technical Korea API',
    timestamp: new Date().toISOString(),
    uptime: process.uptime()
  });
});

// 상세 헬스체크 (옵션)
router.get('/detail', (req, res) => {
  res.json({
    status: 'healthy',
    service: 'Technical Korea API',
    version: '2.1.0',
    timestamp: new Date().toISOString(),
    uptime: process.uptime(),
    memory: process.memoryUsage(),
    environment: process.env.NODE_ENV || 'development'
  });
});

module.exports = router;