| 1234567891011121314151617181920 |
- require('dotenv').config();
- const express = require('express');
- const cors = require('cors');
-
- const app = express();
- const PORT = process.env.PORT || 3001;
-
- app.use(cors());
- app.use(express.json());
-
- // 健康检查
- app.get('/api/health', (req, res) => {
- res.json({ status: 'ok', service: '远程团队协作 API' });
- });
-
- // TODO: 添加业务 API
-
- app.listen(PORT, () => {
- console.log(`🚀 远程协作 API:http://localhost:${PORT}`);
- });
|