mirror of
https://github.com/nexu-io/open-design.git
synced 2026-06-01 03:14:35 +07:00
chore: remove dead inline /api/agents route handler in server.ts (#2945)
Co-authored-by: Siri-Ray <2667192167@qq.com>
This commit is contained in:
parent
a7e7d5db18
commit
fe24c8addf
1 changed files with 0 additions and 10 deletions
|
|
@ -5733,16 +5733,6 @@ export async function startServer({
|
||||||
res.json({ ok: true });
|
res.json({ ok: true });
|
||||||
});
|
});
|
||||||
|
|
||||||
app.get('/api/agents', async (_req, res) => {
|
|
||||||
try {
|
|
||||||
const config = await readAppConfig(RUNTIME_DATA_DIR);
|
|
||||||
const list = await detectAgents(config.agentCliEnv ?? {});
|
|
||||||
res.json({ agents: list });
|
|
||||||
} catch (err) {
|
|
||||||
res.status(500).json({ error: String(err) });
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
// AMR (vela) login integration — see `apps/daemon/src/integrations/vela.ts`.
|
// AMR (vela) login integration — see `apps/daemon/src/integrations/vela.ts`.
|
||||||
// The vela CLI owns the device-authorization UX (URL + code + browser open);
|
// The vela CLI owns the device-authorization UX (URL + code + browser open);
|
||||||
// these routes only surface enough state for Open Design's Settings card to
|
// these routes only surface enough state for Open Design's Settings card to
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue