const express = require('express');
const router = express.Router();

// 简单的健康检查接口
router.get('/health', (req, res) => {
  res.json({
    success: true,
    message: '后端服务运行正常',
    timestamp: new Date().toISOString()
  });
});

// 测试POST接口
router.post('/echo', (req, res) => {
  res.json({
    success: true,
    message: '接收到POST请求',
    data: req.body,
    timestamp: new Date().toISOString()
  });
});

module.exports = router;