const ROUTE_LOG_LINES = [ ' GET /api/health — 健康检查', ' GET /api/whisper/status — Whisper 可用性', ' POST /api/whisper/transcribe — 语音转文字', ' GET /api/manifest — 获取视频清单', ' PUT /api/manifest/:videoId — 更新视频信息', ' POST /api/manifest — 添加视频条目', ' GET /api/files/whisper/:id — Whisper 输出文件', ' GET /api/files/read?path= — 读取项目文件', ' POST /api/upload/video — 上传视频文件', ' POST /api/remix/extract-audio — 提取视频音频', ' POST /api/remix/upload-asset — 上传重塑素材到 Parse', ' POST /api/download/video — 下载远程视频到本地库', ' GET /api/download/video/:id — 查询下载任务进度', ' ---', ' GET /api/tasks — 获取任务列表', ' POST /api/tasks — 创建任务', ' PUT /api/tasks/:id — 更新任务', ' DEL /api/tasks/:id — 删除任务', ' ---', ' GET /api/history — 获取历史记录', ' POST /api/history — 添加历史', ' DEL /api/history/:id — 删除历史', ' DEL /api/history — 清空历史', ' ---', ' GET /api/results — 获取结果', ' POST /api/results — 添加结果', ' PUT /api/results/:id — 更新结果', ' DEL /api/results/:id — 删除结果', ' ---', ' POST /api/llm/chat — LLM 对话(OpenAI格式)', ' POST /api/llm/gemini — Gemini 媒体识别' ]; function printStartupLog({ port, projectRoot }) { console.log(''); console.log('========================================'); console.log(` 🚀 后端服务已启动: http://localhost:${port}`); console.log(` 📁 项目根目录: ${projectRoot}`); console.log(' 📋 接口列表:'); for (const line of ROUTE_LOG_LINES) { console.log(line); } console.log('========================================'); console.log(''); } module.exports = { printStartupLog };