Skip to content

Commit e9cc867

Browse files
chitcommitclaude
andcommitted
docs(court-docket): clarify bridge route is read-back, not dead code
Separated adversarial review flagged POST /scrape/court-docket as apparently-dead/confusing since its handler no longer triggers a live scrape. It's intentionally kept at the same route -- the contract changed (reads the latest pushed result instead of triggering a scrape) but the route and response shape didn't, so existing callers don't need to change. Clarified in the route's own comment. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016RuqeURZ1b7NB74U2nqqSS
1 parent be33fe2 commit e9cc867

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

src/routes/bridge/scrape.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,12 @@ export const scrapeRoutes = new Hono<{ Bindings: Env; Variables: AuthVariables }
99

1010
// ── ChittyScrape ─────────────────────────────────────────────
1111

12-
/** Trigger court docket scrape */
12+
/**
13+
* Read the latest pushed court docket result for a case.
14+
* Kept as POST /court-docket (not renamed/removed) for existing callers --
15+
* the endpoint's contract changed (read-back, not trigger-a-scrape) but its
16+
* shape and route didn't, so nothing calling this needs to change.
17+
*/
1318
scrapeRoutes.post('/court-docket', async (c) => {
1419
const scrape = scrapeClient(c.env);
1520
if (!scrape) return c.json({ error: 'ChittyScrape not configured' }, 503);

0 commit comments

Comments
 (0)