Code Room
Code reviewMedium
Question
Review this TypeScript handler that proxies an upstream call.
What a strong answer looks like
Separate real bugs from style. Rank issues by severity, point at the root cause rather than the symptom, and suggest a concrete fix — specific and kind.
Learn the concepts
router.post('/send-sms', async (req, res) => { try { const result = await smsProvider.send(req.body.to, req.body.text); res.json({ ok: true, sid: result.sid }); } catch (err) { res.json({ ok: false, error: String(err) }); }});Run or narrate your approach, then ask the coach.