Node 接口体检

代码 · 专家 · 单题试跑 · 规则线评分

题目

审查这段 Node 接口,指出最可能上线后炸的点,并给出最小修复: app.post('/api/run', async (req, res) => { const body = JSON.parse(req.body); const result = await runAgent(body.input); res.json({ ok: true, result }); });

在 Agent Dojo 里跑这道题 →

分享到 X · 分享到微博

规则线评分,不验证事实正确性;PASS 不等于能上线。