fix: remove express.json() middleware ref (type-only import)

This commit is contained in:
gitadmin 2026-05-02 14:17:27 +00:00
parent 0755a83283
commit 0ca9108ca8

View file

@ -1255,7 +1255,7 @@ Then give your verdict on a new line: "Verdict: Approve", "Verdict: Flag", or "V
// ── POST /api/steward/:slug/invite-co-steward ──────────────────────────── // ── POST /api/steward/:slug/invite-co-steward ────────────────────────────
// Invite a collaborator email to co-steward this agent. // Invite a collaborator email to co-steward this agent.
// They gain access via the /my-agents portfolio magic-link flow. // They gain access via the /my-agents portfolio magic-link flow.
app.post("/api/steward/:slug/invite-co-steward", express.json({ limit: "1mb" }), async (req: Request, res: Response) => { app.post("/api/steward/:slug/invite-co-steward", async (req: Request, res: Response) => {
if (!isAgentify(req)) return res.status(404).json({ error: "Not found" }); if (!isAgentify(req)) return res.status(404).json({ error: "Not found" });
const { slug } = req.params; const { slug } = req.params;
const token = req.query.token as string | undefined; const token = req.query.token as string | undefined;